Simplify code in link to support investment
The code was harder to read with the (unnecessary) block.
This commit is contained in:
@@ -10,15 +10,13 @@
|
|||||||
<%= t("budgets.investments.investment.already_supported") %>
|
<%= t("budgets.investments.investment.already_supported") %>
|
||||||
</div>
|
</div>
|
||||||
<% elsif investment.should_show_votes? %>
|
<% elsif investment.should_show_votes? %>
|
||||||
<%= link_to vote_url,
|
<%= link_to t("budgets.investments.investment.give_support"), vote_url,
|
||||||
class: "button button-support small expanded",
|
class: "button button-support small expanded",
|
||||||
title: t("budgets.investments.investment.support_title"),
|
title: t("budgets.investments.investment.support_title"),
|
||||||
method: "post",
|
method: "post",
|
||||||
remote: !display_support_alert?,
|
remote: !display_support_alert?,
|
||||||
data: ({ confirm: confirm_vote_message } if display_support_alert?),
|
data: ({ confirm: confirm_vote_message } if display_support_alert?),
|
||||||
"aria-hidden" => css_for_aria_hidden do %>
|
"aria-hidden" => css_for_aria_hidden %>
|
||||||
<%= t("budgets.investments.investment.give_support") %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user