aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/pagination.html
blob: 7ae3559ceeb7496e4a9b2865e23c883ecf3a0a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[% IF pager.total_entries > 1 %]
    <p class="pagination" data-page="[% pager.current_page %]">
        [% 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>
        [% ELSIF num_old_reports > 0 AND NOT show_old_reports AND page == 'around' %]
            <a class="next show_old" href="[% c.uri_with({ $param => pager.current_page, show_old_reports = 1, ajax => undefined }) %][% '#' _ hash IF hash %]">[% loc('Show older') %]</a>
        [% END %]
    </p>
[% END %]