From bb1258f2b2376a180181602ffc65ee29a6716f47 Mon Sep 17 00:00:00 2001 From: kikito Date: Thu, 22 Dec 2016 20:27:46 +0100 Subject: [PATCH] Fixes view --- .../budgets/investments/_header.html.erb | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/app/views/budgets/investments/_header.html.erb b/app/views/budgets/investments/_header.html.erb index 468d1b3c6..610d55186 100644 --- a/app/views/budgets/investments/_header.html.erb +++ b/app/views/budgets/investments/_header.html.erb @@ -1,4 +1,4 @@ -<% if @filter_heading_name.present? %> +<% if @heading.present? %>
@@ -27,20 +27,16 @@ budget_ballot_path(@budget) %> <% end %>
- <% if false - #@heading.present? && - #@ballot.heading.present? && - #@ballot.heading != @heading - %> -
-

- <%= t("budget.investments.header.different_heading_active") %> - <%= link_to @ballot.heading.name, budget_investments_path(budget_id: budget.id, heading_id: @ballot.heading_id) %> -

+ <% if @ballot.valid_heading?(@heading) %> +
+ <%= render 'budgets/ballot/progress_bar' %> +
<% else %> -
- <%= render 'budgets/ballot/progress_bar' %> -
+
+

+ <%= t("budget.investments.header.different_heading_active") %> + <%= link_to @ballot.heading.name, budget_investments_path(budget_id: budget.id, heading_id: @ballot.heading_id) %> +

<% end %>