Apply Style/RedundantInterpolation to ERB files

We forgot to do so in commit 469b39ffa.
This commit is contained in:
Javi Martín
2021-08-11 21:24:19 +02:00
parent 720d3530d7
commit 26fed593df
5 changed files with 8 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
<%= render Admin::TableActionsComponent.new(booth_assignment,
actions: [:destroy],
destroy_text: t("admin.booth_assignments.manage.actions.unassign"),
destroy_confirmation: (booth_assignment.shifts? ? "#{t("admin.poll_booth_assignments.alert.shifts")}" : ""),
destroy_confirmation: (booth_assignment.shifts? ? t("admin.poll_booth_assignments.alert.shifts") : ""),
destroy_options: { remote: true }
) %>
<% end %>

View File

@@ -25,7 +25,7 @@
<% @answer.videos.each do |video| %>
<tr id="<%= dom_id(video) %>" class="poll_question_answer_video">
<td><%= video.title %></td>
<td><%= link_to "#{video.url}", video.url %></td>
<td><%= link_to video.url, video.url %></td>
<td>
<%= render Admin::TableActionsComponent.new(video) %>
</td>

View File

@@ -36,7 +36,7 @@
<% if can?(:manage_polls, proposal) %>
<li>
<%= link_to proposal_dashboard_polls_path(proposal),
class: "#{"submenu-active" if polls_menu_active?}" do %>
class: ("submenu-active" if polls_menu_active?) do %>
<span data-tooltip title="<%= Setting["proposals.poll_short_title"] ||
t("dashboard.menu.polls") %>">
<%= t("dashboard.menu.polls") %>
@@ -48,7 +48,7 @@
<% if can?(:manage_mailing, proposal) %>
<li>
<%= link_to new_proposal_dashboard_mailing_path(proposal),
class: "#{"submenu-active" if mailing_menu_active?}" do %>
class: ("submenu-active" if mailing_menu_active?) do %>
<span data-tooltip title="<%= Setting["proposals.email_short_title"] ||
t("dashboard.menu.mailing") %>">
<%= t("dashboard.menu.mailing") %>
@@ -60,7 +60,7 @@
<% if can?(:manage_poster, proposal) %>
<li>
<%= link_to new_proposal_dashboard_poster_path(proposal),
class: "#{"submenu-active" if poster_menu_active?}" do %>
class: ("submenu-active" if poster_menu_active?) do %>
<span data-tooltip title="<%= Setting["proposals.poster_short_title"] ||
t("dashboard.menu.poster") %>">
<%= t("dashboard.menu.poster") %>
@@ -72,7 +72,7 @@
<% resources.each do |resource| %>
<li>
<%= link_to new_request_proposal_dashboard_action_path(proposal, resource),
class: "#{"submenu-active" if is_request_active(resource.id)}" do %>
class: ("submenu-active" if is_request_active(resource.id)) do %>
<span data-tooltip title="<%= resource.short_description %>">
<%= resource.title %>
</span>

View File

@@ -10,7 +10,7 @@
<% if can? :destroy, budget_investment %>
<%= link_to t("shared.delete"), budget_investment_path(budget_investment.budget, budget_investment),
method: :delete, class: "button hollow alert",
data: { confirm: "#{t("users.show.delete_alert")}" } %>
data: { confirm: t("users.show.delete_alert") } %>
<% end %>
</td>
</tr>

View File

@@ -8,7 +8,7 @@
<div class="small-12 medium-4 column select-heading">
<% slice.each do |filter| %>
<%= link_to valuation_budget_budget_investments_path(budget_id: @budget.id, heading_id: filter[:id]),
class: "#{"is-active" if params[:heading_id].to_s == filter[:id].to_s}" do %>
class: ("is-active" if params[:heading_id].to_s == filter[:id].to_s) do %>
<%= filter[:name] %> (<%= filter[:count] %>)
<% end %>
<% end %>