File: _limit.html.ep

package info (click to toggle)
libminion-perl 10.19%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,004 kB
  • sloc: javascript: 3,572; perl: 1,013; sql: 79; makefile: 10
file content (15 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<nav>
  <ul class="pagination pull-right">
    % for my $i (10, 20, 50, 100) {
      % if ($limit == $i) {
        <li class="page-item active"><a class="page-link"><%= $i %></a></li>
      % }
      % else {
        <li class="page-item">
          % my $url = url_with->query({limit => $i});
          <a class="page-link" href="<%= $url %>"><%= $i %></a>
        </li>
      % }
    % }
  </ul>
</nav>