Sha256: b707fa93116774c486115934814712ea29697380372921dec1cddde9bd700530
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
<div id="settings-dashboard"> <% cache [@settings, params[:monitor_mode]] do %> <% unless params[:monitor_mode] == Sail::ConstantCollection::TRUE %> <%= render(partial: "search") %> <% end %> <div id="settings-container"> <% if @number_of_pages > 0 %> <% if params[:monitor_mode] == Sail::ConstantCollection::TRUE %> <%= render(partial: "setting_minimal", collection: @settings) %> <% else %> <%= render(partial: "setting", collection: @settings) %> <% end%> <% else %> <h1><%= I18n.t("sail.no_settings") %></h1> <% end %> <div class="clearfix"></div> </div> <div id="pagination"> <div class="clearfix"></div> <div class="page-links"> <%= link_to("", settings_path(page: [params[:page].to_i - 1, 0].max, monitor_mode: params[:monitor_mode]), method: :get, id: "angle-left-link", title: I18n.t("sail.previous_page")) %> <% (0...@number_of_pages).each do |page| %> <%= link_to(page + 1, settings_path(page: page, monitor_mode: params[:monitor_mode]), 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, monitor_mode: params[:monitor_mode]), method: :get, id: "angle-right-link", title: I18n.t("sail.next_page")) %> </div> </div> <% end %> </div> <%= render(partial: "profiles_modal") %> <%= render(partial: "guide_modal", locals: { settings: @settings }) %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sail-3.2.4 | app/views/sail/settings/index.html.erb |