Sha256: 5b816d80d61339f950fd59319fba86e3cfd214c3f8aa6867c1c47c2c22ca4f18
Contents?: true
Size: 657 Bytes
Versions: 15
Compression:
Stored size: 657 Bytes
Contents
<ul class="pure-paginator paginator"> <% if @paginator.prev_page %> <% prev_link = path_to_page(@paginator.prev_page, @tag) %> <li> <a class="pure-button prev" href="<%= prev_link %>">«</a> </li> <% end %> <% @paginator.pages.each do |page| %> <% page_class = 'pure-button' %> <% page_class << ' pure-button-active' if @paginator.page == page %> <li><%= link_to page, path_to_page(page, @tag), class: page_class %></li> <% end %> <% if @paginator.next_page %> <% next_link = path_to_page(@paginator.next_page, @tag) %> <li><a class="pure-button prev" href="<%= next_link %>">»</a></li> <% end %> </ul>
Version data entries
15 entries across 15 versions & 1 rubygems