app/views/sail/settings/index.html.erb in sail-1.5.1 vs app/views/sail/settings/index.html.erb in sail-2.0.0

- old
+ new

@@ -1,14 +1,14 @@ <div id="settings-dashboard"> <% cache @settings do %> <span id="notice-success" class="notice success"><%= I18n.t("sail.updated") %></span> <span id="notice-alert" class="notice alert"><%= I18n.t("sail.failed") %></span> - <%= render(partial: 'search') %> + <%= render(partial: "search") %> <div id="settings-container"> <% if @number_of_pages > 0 %> - <%= render(partial: 'setting', collection: @settings) %> + <%= render(partial: "setting", collection: @settings) %> <% else %> <h1><%= I18n.t("sail.no_settings") %></h1> <% end %> <div class="clearfix"></div> @@ -21,15 +21,15 @@ <div class="link-holder"> <%= link_to(I18n.t("sail.main_app"), main_app.method(Sail.configuration.back_link_path).call, method: :get) %> </div> <% end %> - <%= link_to('<', settings_path(page: [params[:page].to_i - 1, 0].max), method: :get) %> + <%= 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' : '') %> + <%= 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) %> + <%= link_to(">", settings_path(page: [params[:page].to_i + 1, @number_of_pages - 1].min), method: :get) %> </div> <% end %> </div>