Use double quotes inside ERB

We were using single quotes inside ERB code when that code was inside
HTML double quotes.
This commit is contained in:
Javi Martín
2019-03-25 13:31:26 +01:00
parent 4c35df4812
commit 3e4e65ead7
65 changed files with 107 additions and 107 deletions

View File

@@ -11,7 +11,7 @@
<ul>
<% [:debates, :create_proposals, :support_proposals, :vote_proposals].each do |permission| %>
<li>
<span class="<%= permissions.include?(permission) ? 'icon-check' : 'icon-x' %>"></span>
<span class="<%= permissions.include?(permission) ? "icon-check" : "icon-x" %>"></span>
<%= t("management.permissions.#{permission}") %>
</li>
<% end %>

View File

@@ -1,4 +1,4 @@
$("#<%= dom_id(@investment) %>_votes").html('<%= j render("/budgets/investments/votes",
$("#<%= dom_id(@investment) %>_votes").html("<%= j render("/budgets/investments/votes",
investment: @investment,
investment_votes: @investment_votes,
vote_url: namespaced_budget_investment_vote_path(@investment, value: 'yes')) %>');
vote_url: namespaced_budget_investment_vote_path(@investment, value: "yes")) %>");

View File

@@ -7,6 +7,6 @@
placeholder: t("management.user_invites.new.info"),
aria: {describedby: "emails-help-text"} %>
<div class="small-12 medium-6 large-3">
<input type="submit" name="" value="<%= t('management.user_invites.new.submit') %>", class="button expanded">
<input type="submit" name="" value="<%= t("management.user_invites.new.submit") %>", class="button expanded">
</div>
<% end %>