diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-06-19 20:30:35 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-06-20 19:37:26 -0400 |
| commit | 65fca0012dd788a9175fa01370fc43f8da2d9121 (patch) | |
| tree | 1e2e452ef54e5dfc584df139fac8d8615ecd9132 /templates | |
| parent | 35bb67227b8fee2b798465b1a5607455f60e9f7f (diff) | |
[birka-web] Implement file-specific views and thumbnails.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/image.hbs | 13 |
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"> |