Sha256: 0afb765ef7d0c62e1eb81b90b291eee1fbf51c4f0eb42fe022f7b7d3b93743f3
Contents?: true
Size: 1.04 KB
Versions: 105
Compression:
Stored size: 1.04 KB
Contents
<% if @total_size > @count %> <ul class="pagination pull-right flip"> <% _page_key = defined?(page_key) ? page_key.to_s : 'page' %> <li class="<%= 'disabled' if @current_page == 1 %>"> <a href="<%= url %>?<%= _page_key %>=1">«</a> </li> <% if @current_page > 1 %> <li> <a href="<%= url %>?<%= (qparams(page: @current_page - 1) || '').gsub('page', _page_key) %>"><%= @current_page - 1 %></a> </li> <% end %> <li class="disabled"> <a href="<%= url %>?<%= (qparams(page: @current_page) || '').gsub('page', _page_key) %>"><%= @current_page %></a> </li> <% if @total_size > @current_page * @count %> <li> <a href="<%= url %>?<%= (qparams(page: @current_page + 1) || '').gsub('page', _page_key) %>"><%= @current_page + 1 %></a> </li> <% end %> <li class="<%= 'disabled' if @total_size <= @current_page * @count %>"> <a href="<%= url %>?<%= (qparams(page: (@total_size.to_f / @count).ceil) || '').gsub('page', _page_key) %>">»</a> </li> </ul> <% end %>
Version data entries
105 entries across 105 versions & 1 rubygems