fixed pagination on channel page to show only as needed
This commit is contained in:
parent
cec7e5ef57
commit
b2268ceee9
1 changed files with 13 additions and 6 deletions
|
@ -1,11 +1,17 @@
|
||||||
<div class="row row--padded">
|
<div class="row row--padded">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
{{#ifConditional this.totalPages '===' 0}}
|
||||||
|
<p>There is no content in {{this.channelName}}:{{this.longChannelId}} yet. Upload some!</p>
|
||||||
|
{{/ifConditional}}
|
||||||
|
{{#ifConditional this.totalPages '>=' 1}}
|
||||||
<p>Below are the contents for {{this.channelName}}:{{this.longChannelId}}</p>
|
<p>Below are the contents for {{this.channelName}}:{{this.longChannelId}}</p>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{{#each this.claims}}
|
{{#each this.claims}}
|
||||||
{{> gridItem}}
|
{{> gridItem}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
{{/ifConditional}}
|
||||||
|
{{#ifConditional this.totalPages '>' 1}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column column--3 align-content--left">
|
<div class="column column--3 align-content--left">
|
||||||
<a class="link--primary" href="/{{this.channelName}}:{{this.longChannelId}}?p=1">First [1]</a>
|
<a class="link--primary" href="/{{this.channelName}}:{{this.longChannelId}}?p=1">First [1]</a>
|
||||||
|
@ -25,6 +31,7 @@
|
||||||
<a class="link--primary" href="/{{this.channelName}}:{{this.longChannelId}}?p={{this.totalPages}}">Last [{{this.totalPages}}]</a>
|
<a class="link--primary" href="/{{this.channelName}}:{{this.longChannelId}}?p={{this.totalPages}}">Last [{{this.totalPages}}]</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{/ifConditional}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue