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:
@@ -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 %>
|
||||
|
||||
@@ -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")) %>");
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user