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.
75 lines
1.8 KiB
Handlebars
75 lines
1.8 KiB
Handlebars
<header>
|
|
<a href="{{relative gallery.home.url}}">
|
|
<h1>{{gallery.title}}</h1>
|
|
<h2>{{gallery.subtitle}}</h2>
|
|
</a>
|
|
</header>
|
|
|
|
{{#compare album.depth '!=' 0}}
|
|
<nav>
|
|
{{#each gallery.home.albums}}
|
|
{{> nav}}
|
|
{{/each}}
|
|
</nav>
|
|
{{/compare}}
|
|
|
|
<ul id="galleries">
|
|
{{#each album.albums}}
|
|
<li>
|
|
<a href="{{relative url}}">
|
|
<h3>{{title}}</h3>
|
|
<div class="meta">
|
|
{{summary}}<br />
|
|
{{{date stats.fromDate}}} - {{{date stats.toDate}}}
|
|
</div>
|
|
<ul class="grid">
|
|
{{~#slice previews count=4~}}
|
|
<li><img src="{{relative this.urls.thumb}}" /></li>
|
|
{{~/slice}}
|
|
</ul>
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
|
|
<ul id="media">
|
|
{{#each album.files}}
|
|
{{#if isVideo~}}
|
|
<li data-html="#media{{id}}"
|
|
data-poster="{{relative urls.poster}}"
|
|
data-download-url="{{relative (download this)}}">
|
|
<a href="{{relative (download this)}}">
|
|
<img src="{{relative urls.thumb}}"
|
|
width="{{@root.gallery.thumbSize}}"
|
|
height="{{@root.gallery.thumbSize}}"
|
|
alt="{{name}}" />
|
|
</a>
|
|
<img class="video-overlay" src="{{relative 'public/play.png'}}" />
|
|
</li>
|
|
{{else}}
|
|
<li data-src="{{relative urls.large}}"
|
|
data-sub-html="{{caption}}"
|
|
data-download-url="{{relative (download this)}}">
|
|
<a href="{{relative (download this)}}">
|
|
<img src="{{relative urls.thumb}}"
|
|
width="{{@root.gallery.thumbSize}}"
|
|
height="{{@root.gallery.thumbSize}}"
|
|
alt="{{name}}" />
|
|
</a>
|
|
{{#if isAnimated}}
|
|
<img class="video-overlay" src="{{relative 'public/play.png'}}" />
|
|
{{/if}}
|
|
</li>
|
|
{{/if}}
|
|
{{/each}}
|
|
</ul>
|
|
|
|
<!--
|
|
Optional footer
|
|
-->
|
|
{{#if gallery.footer}}
|
|
<footer>
|
|
<p>{{{gallery.footer}}}</p>
|
|
</footer>
|
|
{{/if}}
|