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_thread.html | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) (limited to 'post_thread.html') diff --git a/post_thread.html b/post_thread.html index 1ea4ccba..abb232fa 100644 --- a/post_thread.html +++ b/post_thread.html @@ -47,20 +47,30 @@ {% 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' %} - {{ config.root }} - {% if config.file_icons[post.filename|extension] %} - {{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }} - {% else %} - {{ config.file_thumb|sprintf(config.file_icons.default) }} - {% endif %} - {% elseif post.thumb == 'spoiler' %} - {{ config.root }}{{ config.spoiler_image }} + {% if post.thumb|extension == 'webm' %} + {% else %} - {{ config.uri_thumb }}{{ post.thumb }} - {% endif %}" style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px" - {% if post.thumb|extension == 'webm' %}>{% else %}alt="" />{% endif %} + + {% endif %} + {% endif %}

-- cgit v1.3