changes header message to include assigned heading link

This commit is contained in:
kikito
2016-12-25 12:56:31 +01:00
parent 9af8eb8d52
commit 2815b28cd1

View File

@@ -34,8 +34,11 @@
<% else %>
<br>
<p class="callout warning inline-block">
<%= t("budget.investments.header.different_heading_assigned") %>
<%= link_to @heading.name, budget_investments_path(budget_id: @budget.id, heading_id: @heading.id) %>
<%= t("budget.investments.header.different_heading_assigned_html",
heading_link: link_to(
@assigned_heading.name,
budget_investments_path(@budget, heading: @assigned_heading))
) %>
</p>
<% end %>
</div>