shows right message depending on voting status in budget group

This commit is contained in:
Juanjo Bazán
2017-05-12 12:03:42 +02:00
parent aca9866d4e
commit 224eb03ca2
3 changed files with 8 additions and 2 deletions

View File

@@ -40,6 +40,12 @@
amount_spent: @ballot.formatted_amount_spent(@heading)) %>
</em>
</p>
<% elsif @assigned_heading.present? %>
<p><%= t("budgets.investments.header.different_heading_assigned_html",
heading_link: link_to(
@assigned_heading.name,
budget_investments_path(@budget, heading_id: @assigned_heading.try(:id)))
) %></p>
<% else %>
<p><strong><%= t("budgets.investments.index.sidebar.zero") %></strong></p>
<% end %>