summaryrefslogtreecommitdiff
path: root/templates/post_thread.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-03-25 13:03:37 +0100
committerczaks <marcin@6irc.net>2014-03-25 13:03:37 +0100
commitf0b2240b5f1e67fb9ad4770a3d5b0f298cf4c1d4 (patch)
tree3180570731df62be98bd4737c34b5b3ae9ca828e /templates/post_thread.html
parent15810c9bedb5b7d18baec0f845bb3177f867471e (diff)
parent44db8e76d8e21b38f9be4ad9e69f6af19c116fb0 (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard into br-integration
Diffstat (limited to 'templates/post_thread.html')
-rw-r--r--templates/post_thread.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/templates/post_thread.html b/templates/post_thread.html
index d922dabd..113444be 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -83,9 +83,19 @@
[<a class="ip-link" style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
{% endif %}
{% if config.display_flags and post.modifiers.flag %}
- <img class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
- style="{% if post.modifiers['flag style'] %}{{ post.modifiers['flag style'] }}{% else %}{{ config.flag_style }}{% endif %}"
- {% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
+ <img
+ {% if config.country_flags_condensed %}
+ class="flag flag-{{ post.modifiers.flag }}" src="{{ config.image_blank }}"
+ {% else %}
+ class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
+ {% endif %}
+ style="{% if post.modifiers['flag style'] %}
+ {{ post.modifiers['flag style'] }}
+ {% else %}
+ {{ config.flag_style }}
+ {% endif %}"
+ {% if post.modifiers['flag alt'] %} alt="{{ post.modifiers['flag alt'] | e('html_attr') }}"
+ title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
{% endif %}
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
</label>