Sha256: 2f9c94d164a6ea8745f914548383b161ff24f13275a793fcd2ad20ff2f6636d8
Contents?: true
Size: 665 Bytes
Versions: 3
Compression:
Stored size: 665 Bytes
Contents
<div id="settings-dashboard"> <div id="settings-container"> <%= render(partial: 'setting', collection: @settings) %> <div class="clearfix"></div> </div> <div id="pagination"> <div class="clearfix"></div> <%= link_to('<', settings_path(page: [params[:page].to_i - 1, 0].max), method: :get) %> <% (0...number_of_pages).each do |page| %> <%= link_to(page + 1, settings_path(page: page), method: :get, class: params[:page].to_i == page || params[:page].blank? && page.zero? ? 'active' : '') %> <% end %> <%= link_to('>', settings_path(page: [params[:page].to_i + 1, number_of_pages - 1].min), method: :get) %> </div> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sail-1.1.0 | app/views/sail/settings/index.html.erb |
sail-1.0.1 | app/views/sail/settings/index.html.erb |
sail-1.0.0 | app/views/sail/settings/index.html.erb |