From 0629bf68f7eee1fd88d9227124b93a984c1868b9 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 5 Oct 2011 23:53:43 +1100 Subject: use template files instead of hardcoded HTML for generating psots --- templates/post_reply.html | 98 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 templates/post_reply.html (limited to 'templates/post_reply.html') diff --git a/templates/post_reply.html b/templates/post_reply.html new file mode 100644 index 00000000..a8ed151a --- /dev/null +++ b/templates/post_reply.html @@ -0,0 +1,98 @@ +{% filter remove_whitespace %} +{# tabs and new lines will be ignored #} +
+ +

+ + + {% if config.poster_ids %} + ID: {{ post.ip|poster_id(post.id) }} + {% endif %} + No. + + {{ post.id }} + + + {% if post.embed %} + {{ post.embed }} + {% elseif post.file == 'deleted' %} + + {% elseif post.file and post.file %} +

File: {{ post.file }} + ( + {% if post.thumb == 'spoiler' %} + Spoiler Image, + {% endif %} + {{ post.filesize|filesize }} + {% if post.filex and post.filey %} + , {{ post.filex}}x{{ post.filey }} + {% if config.show_ratio %} + , {{ post.ratio }} + {% endif %} + {% endif %} + {% if config.show_filename %} + , + {% if post.filename|length > config.max_filename_display %} + {{ post.filename|truncate(config.max_filename_display) }} + {% else %} + {{ post.filename }} + {% endif %} + {% endif %} + ) +

+ + + {% endif %} + + {{ post.postControls }} +

+ {% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %} +

+
+
+{% endfilter %} -- cgit v1.3