Sha256: 9f22c18950244ca6771743bcf48334ef775380c3578aff900bb05b3e202df4ca
Contents?: true
Size: 668 Bytes
Versions: 4
Compression:
Stored size: 668 Bytes
Contents
<% per_page ||= 20 %> <%if start - per_page >= 0 || start + per_page <= size%> <p class='pagination'> <% if start - per_page >= 0 %> <a href="<%= current_page %>?start=<%= start - per_page %>" class='less'>« Previous</a> <% end %> <% (0...(size / per_page.to_f).ceil).each do |page_num| %> <% if start == page_num * per_page %> <%= page_num + 1 %> <% else %> <a href="<%= current_page %>?start=<%= page_num * per_page %>"> <%= page_num + 1 %></a> <% end %> <% end %> <% if start + per_page <= size %> <a href="<%= current_page %>?start=<%= start + per_page %>" class='more'>Next »</a> <% end %> </p> <%end%>
Version data entries
4 entries across 4 versions & 1 rubygems