From 827ca377306585be8ad83c5e7d04bbe52b5f35e7 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 27 Nov 2013 02:17:25 -0800 Subject: fallback to attachment image when video doesn't work --- post_reply.html | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'post_reply.html') diff --git a/post_reply.html b/post_reply.html index 876ee3a9..9b10a8f4 100644 --- a/post_reply.html +++ b/post_reply.html @@ -97,20 +97,29 @@ {% else %} {{ config.uri_img }}{{ post.file }} {% endif %}" target="_blank"{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' or post.filename|extension == 'webm' %} class="file"{% endif %}> - <{% if post.thumb|extension == 'webm' %}video preload{% else %}img{% endif %} class="post-image" src=" - {% if post.thumb == 'file' %} + {% if post.thumb|extension == 'webm' %} + {% else %}alt="" />{% endif %} + {% endif %}" style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px"> + {% else %} + + {% endif %} {% endif %} {{ post.postControls }} -- cgit v1.3