Apply Style/HashSyntax rule in ERB files

This commit is contained in:
Javi Martín
2020-09-30 21:00:20 +02:00
parent 67c6515405
commit 4809a87a78
8 changed files with 8 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
<% information_texts_tabs.each do |tab| %> <% information_texts_tabs.each do |tab| %>
<li class="tabs-title"> <li class="tabs-title">
<% if tab.to_s == @tab %> <% if tab.to_s == @tab %>
<%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab), :class => "is-active" %> <%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab), class: "is-active" %>
<% else %> <% else %>
<%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab) %> <%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab) %>
<% end %> <% end %>

View File

@@ -1,6 +1,6 @@
<h2><%= t("devise.password_expired.expire_password") %></h2> <h2><%= t("devise.password_expired.expire_password") %></h2>
<%= form_for(resource, :as => resource_name, :url => [resource_name, :password_expired], :html => { :method => :put }) do |f| %> <%= form_for(resource, as: resource_name, url: [resource_name, :password_expired], html: { method: :put }) do |f| %>
<%= f.password_field :current_password %></p> <%= f.password_field :current_password %></p>
<%= f.password_field :password, label: t("devise.password_expired.new_password") %></p> <%= f.password_field :password, label: t("devise.password_expired.new_password") %></p>

View File

@@ -1,3 +1,3 @@
<li> <li>
<%= link_to t("views.pagination.first"), url, :remote => remote %> <%= link_to t("views.pagination.first"), url, remote: remote %>
</li> </li>

View File

@@ -1,3 +1,3 @@
<li> <li>
<%= link_to t("views.pagination.last"), url, :remote => remote %> <%= link_to t("views.pagination.last"), url, remote: remote %>
</li> </li>

View File

@@ -1,3 +1,3 @@
<li class="pagination-next"> <li class="pagination-next">
<%= link_to t("views.pagination.next"), url, :rel => "next", :remote => remote %> <%= link_to t("views.pagination.next"), url, rel: "next", remote: remote %>
</li> </li>

View File

@@ -5,6 +5,6 @@
</li> </li>
<% else %> <% else %>
<li> <li>
<%= link_to page, url, { :remote => remote, :rel => page.next? ? "next" : page.prev? ? "prev" : nil } %> <%= link_to page, url, { remote: remote, rel: page.next? ? "next" : page.prev? ? "prev" : nil } %>
</li> </li>
<% end %> <% end %>

View File

@@ -1,3 +1,3 @@
<li class="pagination-previous"> <li class="pagination-previous">
<%= link_to t("views.pagination.previous"), url, :rel => "prev", :remote => remote %> <%= link_to t("views.pagination.previous"), url, rel: "prev", remote: remote %>
</li> </li>

View File

@@ -1,7 +1,7 @@
<%= form_for(@proposal, url: form_url) do |f| %> <%= form_for(@proposal, url: form_url) do |f| %>
<%= render "shared/errors", resource: @proposal %> <%= render "shared/errors", resource: @proposal %>
<%= f.hidden_field(:legislation_process_id, :value => params[:process_id]) %> <%= f.hidden_field(:legislation_process_id, value: params[:process_id]) %>
<div class="row"> <div class="row">
<div class="small-12 column"> <div class="small-12 column">