Fixes view
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<% if @filter_heading_name.present? %>
|
||||
<% if @heading.present? %>
|
||||
<section class="no-margin-top margin-bottom">
|
||||
<div class="expanded jumbo-budget budget-heading padding">
|
||||
|
||||
@@ -27,20 +27,16 @@
|
||||
budget_ballot_path(@budget) %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if false
|
||||
#@heading.present? &&
|
||||
#@ballot.heading.present? &&
|
||||
#@ballot.heading != @heading
|
||||
%>
|
||||
<br>
|
||||
<p class="callout warning inline-block">
|
||||
<%= t("budget.investments.header.different_heading_active") %>
|
||||
<%= link_to @ballot.heading.name, budget_investments_path(budget_id: budget.id, heading_id: @ballot.heading_id) %>
|
||||
</p>
|
||||
<% if @ballot.valid_heading?(@heading) %>
|
||||
<div id="progress_bar" class="no-margin-top">
|
||||
<%= render 'budgets/ballot/progress_bar' %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div id="progress_bar" class="no-margin-top">
|
||||
<%= render 'budgets/ballot/progress_bar' %>
|
||||
</div>
|
||||
<br>
|
||||
<p class="callout warning inline-block">
|
||||
<%= t("budget.investments.header.different_heading_active") %>
|
||||
<%= link_to @ballot.heading.name, budget_investments_path(budget_id: budget.id, heading_id: @ballot.heading_id) %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user