changes back link on header to budgets_path

This commit is contained in:
decabeza
2018-01-19 13:38:58 +01:00
committed by Bertocq
parent 27111b95c3
commit f1ce68a445
2 changed files with 3 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
<div class="expanded budget no-margin-top">
<div class="row">
<div class="small-12 medium-9 column padding">
<%= back_link_to budget_path(@budget) %>
<%= back_link_to budgets_path %>
<h2><%= t("budgets.groups.show.title") %></h2>
</div>
</div>

View File

@@ -4,13 +4,8 @@
<div class="row">
<div class="small-12 column">
<% if @heading.group.headings.count == 1 %>
<%= back_link_to budget_path(@budget, unfeasible: params[:unfeasible]) %>
<% else %>
<%= back_link_to budget_group_path(@budget,
@heading.group,
unfeasible: params[:unfeasible]) %>
<% end %>
<%= back_link_to budgets_path %>
<% if can? :show, @ballot %>
<%= link_to t("budgets.investments.header.check_ballot"),
budget_ballot_path(@budget),