aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/linklist.paging.html
blob: c8c13fe07d0179e4987c9f047fe400f3418476ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="linklist-paging">
  <div class="paging pure-g">
    <div class="linklist-filters pure-u-1-3">
      {if="isLoggedIn() or !empty($action_plugin)"}
        <span class="linklist-filters-text">
          Filters
        </span>
        {if="isLoggedIn()"}
          <a href="?privateonly" title="Click to see all links"
             class={if="$privateonly"}"filter-on"{else}"filter-off"{/if}
          ><i class="fa fa-key"></i></a>
        {/if}
        {loop="$action_plugin"}
          <!-- FIXME! Plugin update to handle that. -->
          <a href="?privateonly" title="{$value.title}" class=
            {if="$value.on"}
              "filter-on"
            {else}
              "filter-off"
            {/if}
          >{$value.url}</a>
        {/loop}
      {/if}
    </div>


    <div class="linklist-pages pure-u-1-3">
      {if="$previous_page_url"}
        <a href="{$previous_page_url}" class="paging_older">
          <i class="fa fa-long-arrow-left"></i> Older
        </a>
      {/if}
      {if="$page_max>1"}{$page_current} / {$page_max}{/if}
      {if="$next_page_url"}
        <a href="{$next_page_url}" class="paging_newer">
          Newer <i class="fa fa-long-arrow-right"></i>
        </a>
      {/if}
    </div>

    <div class="linksperpage pure-u-1-3">
      Links per page
      <a href="?linksperpage=20">20</a>
      <a href="?linksperpage=50">50</a>
      <a href="?linksperpage=100">100</a>
      <form method="GET">
        <input type="text" name="linksperpage" placeholder="133">
      </form>
    </div>
  </div>
</div>