]> git.immae.eu Git - github/shaarli/Shaarli.git/blame_incremental - tpl/default/linklist.paging.html
Merge pull request #1126 from kramred/master
[github/shaarli/Shaarli.git] / tpl / default / linklist.paging.html
... / ...
CommitLineData
1<div class="linklist-paging">
2 <div class="paging pure-g">
3 <div class="linklist-filters pure-u-1-3">
4 {if="isLoggedIn() or !empty($action_plugin)"}
5 <span class="linklist-filters-text pure-u-0 pure-u-lg-visible">
6 {'Filters'|t}
7 </span>
8 {if="isLoggedIn()"}
9 <a href="?visibility=private" title="{'Only display private links'|t}"
10 class="{if="$visibility==='private'"}filter-on{else}filter-off{/if}"
11 ><i class="fa fa-user-secret"></i></a>
12 <a href="?visibility=public" title="{'Only display public links'|t}"
13 class="{if="$visibility==='public'"}filter-on{else}filter-off{/if}"
14 ><i class="fa fa-globe"></i></a>
15 {/if}
16 <a href="?untaggedonly" title="{'Filter untagged links'|t}"
17 class={if="$untaggedonly"}"filter-on"{else}"filter-off"{/if}
18 ><i class="fa fa-tag"></i></a>
19 <a href="#" class="filter-off fold-all pure-u-lg-0" title="{'Fold all'|t}">
20 <i class="fa fa-chevron-up"></i>
21 </a>
22 {loop="$action_plugin"}
23 {$value.attr.class=isset($value.attr.class) ? $value.attr.class : ''}
24 {$value.attr.class=!empty($value.on) ? $value.attr.class .' filter-on' : $value.attr.class .' filter-off'}
25 <a
26 {loop="$value.attr"}
27 {$key}="{$value}"
28 {/loop}>
29 {$value.html}
30 </a>
31 {/loop}
32 {/if}
33 </div>
34
35
36 <div class="linklist-pages pure-u-1-3">
37 {if="$next_page_url"}
38 <a href="{$next_page_url}" class="paging_newer">
39 <i class="fa fa-arrow-circle-left"></i>
40 </a>
41 {/if}
42 {if="$page_max>1"}<span class="strong">{$page_current} / {$page_max}</span>{/if}
43 {if="$previous_page_url"}
44 <a href="{$previous_page_url}" class="paging_older">
45 <i class="fa fa-arrow-circle-right"></i>
46 </a>
47 {/if}
48
49 </div>
50
51 <div class="linksperpage pure-u-1-3">
52 <div class="pure-u-0 pure-u-lg-visible">{'Links per page'|t}</div>
53 <a href="?linksperpage=20">20</a>
54 <a href="?linksperpage=50">50</a>
55 <a href="?linksperpage=100">100</a>
56 <form method="GET" class="pure-u-0 pure-u-lg-visible">
57 <input type="text" name="linksperpage" placeholder="133">
58 </form>
59 <a href="#" class="filter-off fold-all pure-u-0 pure-u-lg-visible" title="{'Fold all'|t}">
60 <i class="fa fa-chevron-up"></i>
61 </a>
62 </div>
63 </div>
64</div>