Do not show the Evaluate link when there are no projects to evaluate for current valuator
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user