From 4014682882d0b390dc099d05e6701521e5f64a31 Mon Sep 17 00:00:00 2001 From: Marcin Ɓabanowski Date: Wed, 22 Apr 2015 05:54:48 +0200 Subject: fileboard support --- templates/post_thread_fileboard.html | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 templates/post_thread_fileboard.html (limited to 'templates/post_thread_fileboard.html') diff --git a/templates/post_thread_fileboard.html b/templates/post_thread_fileboard.html new file mode 100644 index 00000000..983bfe17 --- /dev/null +++ b/templates/post_thread_fileboard.html @@ -0,0 +1,42 @@ +{% filter remove_whitespace %} +{# tabs and new lines will be ignored #} + +{# we are intentionally breaking the thread_ID convention: the jses need to handle this case differently #} + + + +{{ post.id }} +{% include 'post/name.html' %} + {% include 'post/flag.html' %} +[{{ post.files[0].filename|e|bidi_cleanup }}] +{% if post.modifiers['tag'] %}[{{ post.modifiers['tag'] }}]{% endif %} +{% include 'post/subject.html' %} + {% if post.sticky %} + {% if config.font_awesome %} + + {% else %} + Sticky + {% endif %} + {% endif %} + {% if post.locked %} + {% if config.font_awesome %} + + {% else %} + Locked + {% endif %} + {% endif %} + {% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %} + {% if config.font_awesome %} + + {% else %} + Bumplocked + {% endif %} + {% endif %} +{{ post.files[0].size|filesize }} +{% include 'post/time.html' %} +{{ post.omitted }} +{% include 'post/post_controls.html' %} + [{% trans %}Reply{% endtrans %}] + + +{% endfilter %} -- cgit v1.3 From 271dcb7a6501ae402344ea6685c7313f49e645d5 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 23 Apr 2015 03:45:08 +0200 Subject: fileboard: fix possible XSS (mainly applicable to 8chan) --- templates/post_form.html | 2 +- templates/post_thread_fileboard.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/post_thread_fileboard.html') diff --git a/templates/post_form.html b/templates/post_form.html index ea3ac765..0e0d3fed 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -98,7 +98,7 @@ diff --git a/templates/post_thread_fileboard.html b/templates/post_thread_fileboard.html index 983bfe17..1a11ff79 100644 --- a/templates/post_thread_fileboard.html +++ b/templates/post_thread_fileboard.html @@ -9,7 +9,7 @@ {% include 'post/name.html' %} {% include 'post/flag.html' %} [{{ post.files[0].filename|e|bidi_cleanup }}] -{% if post.modifiers['tag'] %}[{{ post.modifiers['tag'] }}]{% endif %} +{% if post.modifiers['tag'] %}[{{ post.modifiers['tag']|e }}]{% endif %} {% include 'post/subject.html' %} {% if post.sticky %} {% if config.font_awesome %} -- cgit v1.3