Apply SpaceAroundErbTag ERB Lint rule
This commit is contained in:
@@ -205,7 +205,7 @@
|
||||
</li>
|
||||
|
||||
<li <%= "class=is-active" if controller_name == "moderators" %>>
|
||||
<%= link_to t("admin.menu.moderators"), admin_moderators_path%>
|
||||
<%= link_to t("admin.menu.moderators"), admin_moderators_path %>
|
||||
</li>
|
||||
|
||||
<li <%= "class=is-active" if controller_name == "valuators" %>>
|
||||
@@ -281,7 +281,7 @@
|
||||
<span class="icon-settings"></span>
|
||||
<strong><%= t("admin.menu.title_settings") %></strong>
|
||||
</a>
|
||||
<ul <%="class=is-active" if menu_settings? %>>
|
||||
<ul <%= "class=is-active" if menu_settings? %>>
|
||||
<li <%= "class=is-active" if controller_name == "settings" %>>
|
||||
<%= link_to t("admin.menu.settings"), admin_settings_path %>
|
||||
</li>
|
||||
@@ -300,7 +300,7 @@
|
||||
</li>
|
||||
|
||||
<li <%= "class=is-active" if controller_name == "content_blocks" %>>
|
||||
<%= link_to t("admin.menu.site_customization.content_blocks"), admin_site_customization_content_blocks_path%>
|
||||
<%= link_to t("admin.menu.site_customization.content_blocks"), admin_site_customization_content_blocks_path %>
|
||||
</li>
|
||||
|
||||
<li <%= "class=is-active" if submenu_local_census_records? %>>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<th scope="col" class="small-3"><%= t("admin.shared.actions") %></th>
|
||||
</thead>
|
||||
<% @administrators.each do |administrator| %>
|
||||
<tr id="<%= dom_id(administrator)%>">
|
||||
<tr id="<%= dom_id(administrator) %>">
|
||||
<td class="text-center">
|
||||
<%= administrator.id %>
|
||||
</td>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
class: "js-calendar-full",
|
||||
id: "post_started_at" %>
|
||||
</div>
|
||||
<% date_ended_at = @banner.post_ended_at.present? ? I18n.localize(@banner.post_ended_at) : ""%>
|
||||
<% date_ended_at = @banner.post_ended_at.present? ? I18n.localize(@banner.post_ended_at) : "" %>
|
||||
<div class="small-12 medium-3 column end">
|
||||
<%= f.label :post_ended_at, t("admin.banners.banner.post_ended_at") %>
|
||||
<%= f.text_field :post_ended_at,
|
||||
@@ -40,7 +40,7 @@
|
||||
<%= translations_form.text_field :description,
|
||||
placeholder: t("admin.banners.banner.description"),
|
||||
data: {js_banner_description: "js_banner_description"},
|
||||
label: t("admin.banners.banner.description") %>
|
||||
label: t("admin.banners.banner.description") %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr id="<%= dom_id(banner) %>">
|
||||
<th scope="col"><%= t("admin.banners.banner.post_started_at")%></th>
|
||||
<th scope="col"><%= t("admin.banners.banner.post_ended_at")%></th>
|
||||
<th scope="col" class="small-4"><%= t("admin.actions.actions")%></th>
|
||||
<th scope="col"><%= t("admin.banners.banner.post_started_at") %></th>
|
||||
<th scope="col"><%= t("admin.banners.banner.post_ended_at") %></th>
|
||||
<th scope="col" class="small-4"><%= t("admin.actions.actions") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
class: "button hollow float-right clear" %>
|
||||
<% else %>
|
||||
<span class="button hollow disabled float-right clear">
|
||||
<%= t("admin.budgets.winners.calculate")%>
|
||||
<%= t("admin.budgets.winners.calculate") %>
|
||||
</span>
|
||||
<div class="callout warning clear">
|
||||
<%= t("admin.budget_investments.index.cannot_calculate_winners") %>
|
||||
@@ -27,7 +27,7 @@
|
||||
<table class="table-for-mobile column-selecteable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= link_to_investments_sorted_by :id %></th>
|
||||
<th><%= link_to_investments_sorted_by :id %></th>
|
||||
<th data-field="title"><%= link_to_investments_sorted_by :title %></th>
|
||||
<th data-field="supports"><%= link_to_investments_sorted_by :supports %></th>
|
||||
<th data-field="admin"><%= t("admin.budget_investments.index.list.admin") %></th>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<td>
|
||||
<% if draft_version.status == "draft" %>
|
||||
<%= t("admin.legislation.draft_versions.statuses.draft") %>
|
||||
<%= link_to "(#{t(".preview")})", legislation_process_draft_version_path(@process, draft_version) %>
|
||||
<%= link_to "(#{t(".preview")})", legislation_process_draft_version_path(@process, draft_version) %>
|
||||
<% else %>
|
||||
<%= t("admin.legislation.draft_versions.statuses.published") %>
|
||||
<% end %>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= link_to_remove_association t("admin.legislation.questions.question_option_fields.remove_option"), f, class: "delete"%>
|
||||
<%= link_to_remove_association t("admin.legislation.questions.question_option_fields.remove_option"), f, class: "delete" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<% if can? :reject, organization %>
|
||||
<%= link_to t("admin.organizations.index.reject"),
|
||||
reject_admin_organization_path(organization, request.query_parameters),
|
||||
method: :put, class: "button hollow alert small-5"%>
|
||||
method: :put, class: "button hollow alert small-5" %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-center" id="total_final">
|
||||
<%= total_recounts_by_booth(@booth_assignment) || "-" %>
|
||||
<%= total_recounts_by_booth(@booth_assignment) || "-" %>
|
||||
</td>
|
||||
|
||||
<% unless @poll.recounts_confirmed? %>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<tbody>
|
||||
<% @officer_assignments.each do |officer_assignment| %>
|
||||
<tr id="<%= dom_id officer_assignment %>">
|
||||
<td><%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t("polls.final_date") if officer_assignment.final %></td>
|
||||
<td><%= l(officer_assignment.date.to_date) %> <%= content_tag :strong, t("polls.final_date") if officer_assignment.final %></td>
|
||||
<td><%= booth_name_with_location(officer_assignment.booth_assignment.booth) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%= back_link_to %>
|
||||
|
||||
<h2><%= t("admin.stats.direct_messages.title")%></h2>
|
||||
<h2><%= t("admin.stats.direct_messages.title") %></h2>
|
||||
|
||||
<div class="stats">
|
||||
<div class="row stats-numbers">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%= back_link_to %>
|
||||
|
||||
<h2 id="top"><%= t("admin.stats.polls.title")%></h2>
|
||||
<h2 id="top"><%= t("admin.stats.polls.title") %></h2>
|
||||
|
||||
<div class="stats">
|
||||
<div class="row stats-numbers">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%= back_link_to %>
|
||||
|
||||
<h2><%= t("admin.stats.proposal_notifications.title")%></h2>
|
||||
<h2><%= t("admin.stats.proposal_notifications.title") %></h2>
|
||||
|
||||
<div class="stats">
|
||||
<div class="row stats-numbers">
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<p>
|
||||
<%= t "admin.stats.show.summary.verified_users_who_didnt_vote_proposals" %> <br>
|
||||
<span class="number">
|
||||
<%=number_with_delimiter(@user_ids_who_didnt_vote_proposals)%>
|
||||
<%= number_with_delimiter(@user_ids_who_didnt_vote_proposals) %>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<%= form_for(@tag, url: admin_tags_path, as: :tag) do |f| %>
|
||||
<div class="small-12 medium-6">
|
||||
<%= f.label :name, t("admin.tags.name.placeholder") %>
|
||||
<%= f.text_field :name, placeholder: t("admin.tags.name.placeholder"), label: false %>
|
||||
<%= f.text_field :name, placeholder: t("admin.tags.name.placeholder"), label: false %>
|
||||
</div>
|
||||
|
||||
<%= f.submit(t("admin.tags.create"), class: "button success") %>
|
||||
|
||||
Reference in New Issue
Block a user