spee.ch/views/channel.handlebars

56 lines
2.2 KiB
Handlebars
Raw Normal View History

2018-01-18 12:43:02 -08:00
{{> navBar}}
2017-10-23 13:07:05 -07:00
<div class="row row--padded">
2017-10-12 18:55:26 -07:00
<div class="row">
{{#ifConditional this.totalPages '===' 0}}
2017-12-07 09:28:44 -08:00
<p>There is no content in {{this.channelName}}:{{this.longChannelClaimId}} yet. Upload some!</p>
{{/ifConditional}}
{{#ifConditional this.totalPages '>=' 1}}
2017-12-07 09:28:44 -08:00
<p>Below are the contents for {{this.channelName}}:{{this.longChannelClaimId}}</p>
<div class="grid">
{{#each this.claims}}
{{> gridItem}}
{{/each}}
</div>
{{/ifConditional}}
{{#ifConditional this.totalPages '>' 1}}
2017-10-19 18:55:15 -07:00
<div class="row">
<div class="column column--3 align-content--left">
2017-12-07 09:28:44 -08:00
<a class="link--primary" href="/{{this.channelName}}:{{this.longChannelClaimId}}?p=1">First [1]</a>
2017-10-19 18:55:15 -07:00
</div><div class="column column--4 align-content-center">
{{#if this.previousPage}}
2017-12-07 09:28:44 -08:00
<a class="link--primary" href="/{{this.channelName}}:{{this.longChannelClaimId}}?p={{this.previousPage}}">Previous</a>
2017-10-19 18:55:15 -07:00
{{else}}
2017-10-27 09:59:31 -07:00
<a disabled>Previous</a>
2017-10-19 18:55:15 -07:00
{{/if}}
|
{{#if this.nextPage}}
2017-12-07 09:28:44 -08:00
<a class="link--primary" href="/{{this.channelName}}:{{this.longChannelClaimId}}?p={{this.nextPage}}">Next</a>
2017-10-19 18:55:15 -07:00
{{else}}
<a disabled>Next</a>
{{/if}}
</div><div class="column column--3 align-content-right">
2017-12-07 09:28:44 -08:00
<a class="link--primary" href="/{{this.channelName}}:{{this.longChannelClaimId}}?p={{this.totalPages}}">Last [{{this.totalPages}}]</a>
2017-10-19 18:55:15 -07:00
</div>
2017-10-12 18:55:26 -07:00
</div>
{{/ifConditional}}
2017-10-12 18:55:26 -07:00
</div>
2017-09-01 18:54:27 -07:00
</div>
2017-10-19 17:05:39 -07:00
<script src="/assets/vendors/masonry/masonry.pkgd.min.js"></script>
<script src="/assets/vendors/imagesloaded/imagesloaded.pkgd.min.js"></script>
<script>
// init masonry with element
var grid = document.querySelector('.grid');
var msnry;
imagesLoaded( grid, function() {
msnry = new Masonry( grid, {
itemSelector: '.grid-item',
columnWidth: 3,
percentPosition: true
});
});
2017-10-27 09:59:31 -07:00
2017-12-07 09:28:44 -08:00
</script>