Sha256: b56072ae71dc14faccb24e4ccce5499906704d53f6f3c2ed849defe1f2d3a963
Contents?: true
Size: 716 Bytes
Versions: 16
Compression:
Stored size: 716 Bytes
Contents
<div class="pagination"> <% if @items.prev? %> <%= link_to _("← Previous"), params.merge(:page => @items.prev.number) %> <% else %> <span class="disabled"><%= _("← Previous") %></span> <% end %> <% last_page = 0 -%> <% build_pagination(@pager) do |n| -%> <% if @items.number == n -%> <span class="current"><%= n %></span> <% else -%> <%= "..." if last_page + 1 < n %> <%= link_to n, params.merge(:page => n) %> <% end -%> <% last_page = n -%> <% end -%> <% if @items.next? %> <%= link_to _("Next →"), params.merge(:page => @items.next.number) %> <% else %> <span class="disabled"><%= _("Next →") %></span> <% end %> </div>
Version data entries
16 entries across 16 versions & 1 rubygems