Simplify code in link to support investment

The code was harder to read with the (unnecessary) block.
This commit is contained in:
Javi Martín
2021-06-12 14:11:52 +02:00
parent 791e8b61ec
commit 5663608cd7

View File

@@ -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>