Fix condition to show the "see results" link

This condition was obsolete since we introduced the `results_enabled`
field in commit 4f4dc2c2a.
This commit is contained in:
Javi Martín
2021-08-30 17:28:18 +02:00
parent 0a14337580
commit 7d818e24ca
11 changed files with 100 additions and 6 deletions

View File

@@ -1,8 +1,6 @@
<div class="budgets-links">
<% if budget.has_winning_investments? %>
<%= action(:results,
text: t("budgets.show.see_results"),
path: budget_results_path(budget)) %>
<% if can?(:read_results, budget) %>
<%= action(:results, text: results_text, path: budget_results_path(budget)) %>
<% end %>
<%= action(:preview, text: t("admin.budgets.actions.preview"), path: budget_path(budget), target: "_blank") %>