Sha256: c094fee203e50976034c9c4332fccc6c72e50148279f5048c2647f83d58f9d34

Contents?: true

Size: 701 Bytes

Versions: 4

Compression:

Stored size: 701 Bytes

Contents

<div id="settings-dashboard">
  <%= render(partial: 'search') %>

  <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

4 entries across 4 versions & 1 rubygems

Version Path
sail-1.3.0 app/views/sail/settings/index.html.erb
sail-1.2.2 app/views/sail/settings/index.html.erb
sail-1.2.1 app/views/sail/settings/index.html.erb
sail-1.2.0 app/views/sail/settings/index.html.erb