spee.ch/views/channel.handlebars

47 lines
1.6 KiB
Handlebars
Raw Normal View History

2017-10-19 00:16:07 +02:00
<div class="row row--full-height row--narrow">
2017-10-20 02:05:39 +02:00
<div class="column column--10">
2017-10-13 03:55:26 +02:00
<h2>{{this.channelName}}<span class="h2--secondary">:{{this.longChannelId}}</span></h2>
</div>
2017-10-20 02:05:39 +02:00
<div class="grid">
2017-10-13 03:55:26 +02:00
{{#each this.claims}}
2017-10-20 02:05:39 +02:00
{{> gridItem}}
2017-10-13 03:55:26 +02:00
{{/each}}
</div>
<div class="row">
<div class="column column--3 align-content--left">
2017-10-19 20:25:19 +02:00
<a href="/{{this.channelName}}:{{this.longChannelId}}?p=1">First [1]</a>
2017-10-13 03:55:26 +02:00
</div><div class="column column--4 align-content-center">
2017-10-13 04:08:04 +02:00
{{#if this.previousPage}}
2017-10-19 20:25:19 +02:00
<a href="/{{this.channelName}}:{{this.longChannelId}}?p={{this.previousPage}}">Previous</a>
2017-10-13 04:08:04 +02:00
{{else}}
2017-10-19 20:25:19 +02:00
<a disabled>Previous </a>
2017-10-13 04:08:04 +02:00
{{/if}}
|
{{#if this.nextPage}}
2017-10-19 20:25:19 +02:00
<a href="/{{this.channelName}}:{{this.longChannelId}}?p={{this.nextPage}}">Next</a>
2017-10-13 04:08:04 +02:00
{{else}}
2017-10-19 20:25:19 +02:00
<a disabled>Next</a>
2017-10-13 04:08:04 +02:00
{{/if}}
2017-10-13 03:55:26 +02:00
</div><div class="column column--3 align-content-right">
2017-10-19 20:25:19 +02:00
<a href="/{{this.channelName}}:{{this.longChannelId}}?p={{this.totalPages}}">Last [{{this.totalPages}}]</a>
2017-10-13 03:55:26 +02:00
</div>
</div>
2017-09-02 03:54:27 +02:00
</div>
2017-10-20 02:05:39 +02: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
});
});
</script>