summaryrefslogtreecommitdiff
path: root/templates/image.hbs
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2020-06-19 20:30:35 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2020-06-20 19:37:26 -0400
commit65fca0012dd788a9175fa01370fc43f8da2d9121 (patch)
tree1e2e452ef54e5dfc584df139fac8d8615ecd9132 /templates/image.hbs
parent35bb67227b8fee2b798465b1a5607455f60e9f7f (diff)
[birka-web] Implement file-specific views and thumbnails.
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">