Adds missing content to budget investments mode view

This feature was already on Madrid fork and missing on backport
This commit is contained in:
decabeza
2018-04-05 14:53:22 +02:00
parent b101b28d0f
commit ef00eaa765
4 changed files with 33 additions and 8 deletions

View File

@@ -70,20 +70,12 @@
ballot: @ballot
} %>
<% end %>
<%= render "banners" if @budget.selecting? || @budget.balloting? %>
<%= paginate @investments %>
<% else %>
<% @investments.each do |investment| %>
<%= render partial: '/budgets/investments/investment_minimal',
locals: { investment: investment } %>
<% end %>
<%= render "banners" if @budget.selecting? || @budget.balloting? %>
<%= paginate @investments %>
<% end %>
<%= paginate @investments %>