summaryrefslogtreecommitdiff
path: root/templates/image.hbs
diff options
context:
space:
mode:
Diffstat (limited to 'templates/image.hbs')
-rw-r--r--templates/image.hbs13
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/image.hbs b/templates/image.hbs
index ae24f06..7641820 100644
--- a/templates/image.hbs
+++ b/templates/image.hbs
@@ -11,7 +11,18 @@
</header>
<main>
<h2>{{ orig_filename }}</h2>
- <img src="/image/{{filename}}">
+ {{#if is_video}}
+ <video width="320" height="240" controls>
+ <source src="/image/{{filename}}">
+ Your browser does not support the video tag.
+ </video>
+ {{/if}}
+ {{#if is_image}}
+ <img src="/image/{{filename}}">
+ {{/if}}
+ {{#if is_unknown}}
+ <a href="/image/{{filename}}">Click here to view.</a>
+ {{/if}}
</main>
<aside id="tag-view">
<section id="search">