Do not show the Evaluate link when there are no projects to evaluate for current valuator

This commit is contained in:
Senén Rodero Rodríguez
2023-01-13 13:51:32 +01:00
parent 615b249144
commit 0c09fd22af
4 changed files with 33 additions and 7 deletions

View File

@@ -6,11 +6,13 @@
<%= budget.current_phase.name %>
</td>
<td class="investments-count">
<%= investments_count %>
<%= investments.count %>
</td>
<td>
<%= link_to t("valuation.budgets.index.evaluate"),
valuation_budget_budget_investments_path(budget_id: budget.id),
class: "button hollow expanded" %>
<% if investments.any? %>
<%= link_to t("valuation.budgets.index.evaluate"),
valuation_budget_budget_investments_path(budget_id: budget.id),
class: "button hollow expanded" %>
<% end %>
</td>
</tr>