diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2015-08-11 03:34:00 +0200 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2015-08-11 03:34:00 +0200 |
| commit | 1b099ce072391354eefb3fc40ba57c8ad739d888 (patch) | |
| tree | cb8ca7559e819c6e962dcdcbc5d5ba921f01085e | |
| parent | ae4cac5200045920276aa333949b73e2095e60bf (diff) | |
| parent | e6c1623a4235f267c6e7909ad22e78863af48700 (diff) | |
Merge pull request #158 from 27chan/patch-4
Add extension mp4
| -rw-r--r-- | templates/post/image.html | 6 |
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 }}&t={{ post.filename|e('url') }}&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 }} |
