aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/pagination.html
blob: 448186838f973e46f44f327f3b1402e922b0371e (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.uri_with({ $param => pager.previous_page, ajax => undefined }) %][% '#' _ 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.uri_with({ $param => pager.next_page, ajax => undefined }) %][% '#' _ hash IF hash %]">[% loc('Next') %]</a>
        [% END %]
    </p>
[% END %]