summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2015-08-11 03:34:00 +0200
committerMarcin Łabanowski <marcin@6irc.net>2015-08-11 03:34:00 +0200
commit1b099ce072391354eefb3fc40ba57c8ad739d888 (patch)
treecb8ca7559e819c6e962dcdcbc5d5ba921f01085e
parentae4cac5200045920276aa333949b73e2095e60bf (diff)
parente6c1623a4235f267c6e7909ad22e78863af48700 (diff)
Merge pull request #158 from 27chan/patch-4
Add extension mp4
-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 }}