summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-16 21:25:56 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-16 21:25:56 +1000
commit4876a27232cdf4d77613a6e2e3b4c185c319908b (patch)
tree5f6264ae0a818834b4d3248ee8ffb3169d4880a0 /templates
parentcc62b888affb50d88e0a16dd1e13deeac3533c85 (diff)
Much better post modifiers: raw HTML, ban messages, etc.
Diffstat (limited to 'templates')
-rw-r--r--templates/post_reply.html3
-rw-r--r--templates/post_thread.html6
2 files changed, 9 insertions, 0 deletions
diff --git a/templates/post_reply.html b/templates/post_reply.html
index 56832710..1cce0e27 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -108,6 +108,9 @@
{{ post.postControls }}
<div class="body">
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
+ {% if post.modifiers['ban message'] %}
+ {{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
+ {% endif %}
</div>
</div>
<br/>
diff --git a/templates/post_thread.html b/templates/post_thread.html
index 5caca9a4..6824ce9d 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -82,6 +82,9 @@
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
[<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
{% endif %}
+ {% if config.display_flags and post.modifiers.flag_country %}
+ <img class="flag" style="width:{{ config.flag_width }}px;height:{{ config.flag_height }}px" src="{{ config.uri_flags|sprintf(post.modifiers.flag_country) }}">
+ {% endif %}
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
</label>
{% if config.poster_ids %}
@@ -127,6 +130,9 @@
</p>
<div class="body">
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
+ {% if post.modifiers['ban message'] %}
+ {{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
+ {% endif %}
</div>
{% if post.omitted or post.omitted_images %}
<span class="omitted">