From f1ce68a445aed9691946d9b99b97aa36c5986612 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 19 Jan 2018 13:38:58 +0100 Subject: [PATCH] changes back link on header to budgets_path --- app/views/budgets/groups/show.html.erb | 2 +- app/views/budgets/investments/_header.html.erb | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/views/budgets/groups/show.html.erb b/app/views/budgets/groups/show.html.erb index a5850481d..5b5332eab 100644 --- a/app/views/budgets/groups/show.html.erb +++ b/app/views/budgets/groups/show.html.erb @@ -5,7 +5,7 @@
- <%= back_link_to budget_path(@budget) %> + <%= back_link_to budgets_path %>

<%= t("budgets.groups.show.title") %>

diff --git a/app/views/budgets/investments/_header.html.erb b/app/views/budgets/investments/_header.html.erb index 99f867367..d803ae9d6 100644 --- a/app/views/budgets/investments/_header.html.erb +++ b/app/views/budgets/investments/_header.html.erb @@ -4,13 +4,8 @@
- <% 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),