aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/pagination.html
blob: f0c51bb10845aca2b1d2712bec384ddc0395f9b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[% IF pager.last_page > 1 %]
    <p class="pagination">
        [% IF pager.previous_page %]
            <a class="prev" href="[% c.req.uri_with({ $param => pager.previous_page }) %][% '#' _ hash IF hash %]">[% loc('Previous') %]</a>
        [% END %]

        [% tprintf( loc('%d to %d of %d'), pager.first, pager.last, pager.total_entries ) %]

        [% IF pager.next_page %]
            <a class="next" href="[% c.req.uri_with({ $param => pager.next_page }) %][% '#' _ hash IF hash %]">[% loc('Next') %]</a>
        [% END %]
    </p>
[% END %]