From 5438d7cf64cb1dc686dcd1ebb8ba38cc0c5e4ca1 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 19 Aug 2013 20:31:15 +1000 Subject: [PATCH] add alt="" to flags to make it standards-compliant --- templates/post_reply.html | 2 +- templates/post_thread.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/post_reply.html b/templates/post_reply.html index 28cbd7f8..a1feb005 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -31,7 +31,7 @@ {% if config.display_flags and post.modifiers.flag %} + {% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}> {% endif %} diff --git a/templates/post_thread.html b/templates/post_thread.html index 0ee3f6fa..5910bb74 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -85,7 +85,7 @@ {% if config.display_flags and post.modifiers.flag %} + {% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}> {% endif %}