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_thread.html | 128 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 templates/post_thread.html (limited to 'templates/post_thread.html') diff --git a/templates/post_thread.html b/templates/post_thread.html new file mode 100644 index 00000000..6caff826 --- /dev/null +++ b/templates/post_thread.html @@ -0,0 +1,128 @@ +{% filter remove_whitespace %} +{# tabs and new lines will be ignored #} + +{% 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 %} +

+ + + {% if config.poster_ids %} + ID: {{ post.ip|poster_id(post.id) }} + {% endif %} + No. + + {{ post.id }} + + {% if post.sticky %} + Sticky + {% endif %} + {% if post.locked %} + Locked + {% endif %} + {% if index %} + [Reply] + {% endif %} + {{ post.postControls }} +

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

+ {% if post.omitted or post.omitted_images %} + + {% if post.omitted %} + {{ post.omitted }} post + {% if post.omitted != 1 %} + s + {% endif %} + {% if post.omitted_images %} + and + {% endif %} + {% endif %} + {% if post.omitted_images %} + {{ post.omitted_images }} image repl + {% if post.omitted_images == 1 %} + y + {% else %} + ies + {% endif %} + {% endif %} omitted. Click reply to view. + + {% endif %} +
{% endfilter %} +{% for post in post.posts %} + {% include 'post_reply.html' %} +{% endfor %} +
{% if post.hr %}
{% endif %} + -- cgit v1.3