mirror of https://github.com/thumbsup/thumbsup
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
974 B
Handlebars
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~}}
|