summaryrefslogtreecommitdiff
path: root/templates/post
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2015-09-12 21:03:54 +0100
committerMichael Walker <mike@barrucadu.co.uk>2015-09-12 21:03:54 +0100
commit166ba2a0a205c88bdb8fcc6fc538a0bdc01b60d9 (patch)
tree5a7293c0d78804f72e253e385d015162e029777b /templates/post
parent05c569e656070f086de49d24749d4b18916975da (diff)
parent844b26216614d953ee8521838f1030ad59d735ec (diff)
Merge remote-tracking branch 'vichan/master'
Diffstat (limited to 'templates/post')
-rw-r--r--templates/post/image.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/post/image.html b/templates/post/image.html
index 818ccb57..16fe20b6 100644
--- a/templates/post/image.html
+++ b/templates/post/image.html
@@ -1,16 +1,16 @@
<a href="
- {% if post.file|extension == 'webm' %}
+ {% if post.file|extension == 'webm' or post.file|extension == 'mp4' %}
{{ config.root }}player.php?v={{ config.uri_img }}{{ post.file }}&amp;t={{ post.filename|e('url') }}&amp;loop=1
{% else %}
{{ config.uri_img }}{{ post.file }}
{% endif %}
"
target="_blank"
- {% if post.thumb == 'file' or post.modifiers['is_file'] == '1' or post.filename|extension == 'webm' %}
+ {% if post.thumb == 'file' or post.modifiers['is_file'] == '1' or post.filename|extension == 'webm' or post.file|extension == 'mp4' %}
class="file"
{% endif %}
>
- {% if post.thumb|extension == 'webm' %}
+ {% if post.thumb|extension == 'webm' or post.thumb|extension == 'mp4' %}
<video autoplay class="post-image" src="{{ config.uri_thumb }}{{ post.thumb }}"
poster="
{{ config.root }}