Use double quotes inside string interpolation
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
<%= f.hidden_field :value,
|
||||
value: (setting.enabled? ? "" : "active") %>
|
||||
|
||||
<%= f.submit(t("admin.settings.index.features.#{setting.enabled? ? 'disable' : 'enable'}"),
|
||||
class: "button #{setting.enabled? ? 'hollow alert' : 'success'}",
|
||||
<%= f.submit(t("admin.settings.index.features.#{setting.enabled? ? "disable" : "enable"}"),
|
||||
class: "button #{setting.enabled? ? "hollow alert" : "success"}",
|
||||
data: {confirm: t("admin.actions.confirm")}) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
<%= form_for(feature, url: admin_setting_path(feature), html: { id: "edit_#{dom_id(feature)}"}) do |f| %>
|
||||
|
||||
<%= f.hidden_field :value, id: dom_id(feature), value: (feature.enabled? ? "" : "active") %>
|
||||
<%= f.submit(t("admin.settings.index.features.#{feature.enabled? ? 'disable' : 'enable'}"),
|
||||
class: "button expanded #{feature.enabled? ? 'hollow alert' : 'success'}",
|
||||
<%= f.submit(t("admin.settings.index.features.#{feature.enabled? ? "disable" : "enable"}"),
|
||||
class: "button expanded #{feature.enabled? ? "hollow alert" : "success"}",
|
||||
data: {confirm: t("admin.actions.confirm")}) %>
|
||||
<% end %>
|
||||
</td>
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= f.submit(t("admin.homepage.#{action_name}.#{@card.header? ? 'submit_header' : 'submit_card'}"), class: "button success") %>
|
||||
<%= f.submit(t("admin.homepage.#{action_name}.#{@card.header? ? "submit_header" : "submit_card"}"), class: "button success") %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user