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") %>
|
||||
</div>
|
||||
<% 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",
|
||||
title: t("budgets.investments.investment.support_title"),
|
||||
method: "post",
|
||||
remote: !display_support_alert?,
|
||||
data: ({ confirm: confirm_vote_message } if display_support_alert?),
|
||||
"aria-hidden" => css_for_aria_hidden do %>
|
||||
<%= t("budgets.investments.investment.give_support") %>
|
||||
<% end %>
|
||||
"aria-hidden" => css_for_aria_hidden %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user