Sha256: 8b92e8749848b144659b3ec1d4789aa1c4edfb7e672f7f6ace4892bd75b1d5e9
Contents?: true
Size: 1.27 KB
Versions: 8
Compression:
Stored size: 1.27 KB
Contents
<% if @models.total_pages >= 1 %> <form method="GET" class="admin-pagination" url=""> <div class="pagination-panel"> <%= t('slash_admin.view.page')%> <a class="btn btn-sm btn-prev prev-page <% if @models.current_page == 1 %>disabled <% end %>"> <i class="fa fa-angle-left"></i> </a> <input type="text" value="<%= @models.current_page %>" class="integer" name="page"/> <a href="<%= request.fullpath %>" class="btn btn-sm btn-next btn-sm next-page <% if @models.current_page == @models.total_pages %>disabled<% end %>"> <i class="fa fa-angle-right"></i> </a> <%= t('slash_admin.view.of') %> <span class="pagination-panel-total"><%= @models.total_pages %></span>| <%= t('slash_admin.view.show_by') %> <select class="form-input input-sm form-control" name="per"> <% @per_values.each do |per| %> <option value="<%= per %>" <% if params[:per].to_i == per %>selected<% end %>><%= per %></option> <% end %> </select> <%= t('slash_admin.view.total_of') %> <span class="pagination-panel-total-count"><%= @models.total_count %></span> <%= t('slash_admin.view.result_found') %> </div> </form> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems