2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-17 15:25:50 +00:00
thumbsup/templates/thumbnail.hbs
Romain 3e64d2ab38 Create a Metadata model attached to input files
- for easier unit testing
- to enable input filtering (e.g. only include photos with this keyword)
2017-08-07 22:52:26 +10:00

39 lines
974 B
Handlebars

{{~#if isVideo~}}
{{!--
Video thumbnails
--}}
<li data-html="#media{{id}}"
data-download-url="{{relative urls.download}}">
<a href="{{relative urls.download}}">
<img src="{{relative urls.thumbnail}}"
width="{{@root.gallery.thumbSize}}"
height="{{@root.gallery.thumbSize}}"
alt="{{filename}}" />
</a>
<img class="video-overlay" src="{{relative 'public/play.png'}}" />
</li>
{{~else~}}
{{!--
Image thumbnails
--}}
<li data-src="{{relative urls.large}}"
data-sub-html="{{caption}}"
data-download-url="{{relative urls.download}}">
<a href="{{relative urls.download}}">
<img src="{{relative urls.thumbnail}}"
width="{{@root.gallery.thumbSize}}"
height="{{@root.gallery.thumbSize}}"
alt="{{filename}}" />
</a>
{{#if isAnimated}}
<img class="video-overlay" src="{{relative 'public/play.png'}}" />
{{/if}}
</li>
{{~/if~}}