diff --git a/app/views/budgets/investments/index.html.erb b/app/views/budgets/investments/index.html.erb index 48ba92c32..622921eab 100644 --- a/app/views/budgets/investments/index.html.erb +++ b/app/views/budgets/investments/index.html.erb @@ -35,7 +35,15 @@ <%= render('shared/order_links', i18n_namespace: "budget.investments.index") unless params[:unfeasible].present? %> - <%= render partial: 'investment', collection: @investments %> + <% @investments.each do |investment| %> + <%= render partial: '/budgets/investments/investment', locals: { + investment: investment, + investment_ids: @investment_ids, + investment_votes: @investment_votes, + investment_ballots: @investment_ballots + } %> + <% end %> + <%= paginate @investments %> diff --git a/app/views/budgets/investments/show.html.erb b/app/views/budgets/investments/show.html.erb index 735be8964..6d4b735e1 100644 --- a/app/views/budgets/investments/show.html.erb +++ b/app/views/budgets/investments/show.html.erb @@ -1,5 +1,8 @@ -<% provide :title do %><%= investment.title %><% end %> +<% provide :title do %><%= @investment.title %><% end %> -<%= render partial: '/budgets/investments/investment_show', locals: { investment: @investment, investment_votes: @investment_votes } %> +<%= render partial: '/budgets/investments/investment_show', locals: { + investment: @investment, + investment_votes: @investment_votes +} %> <%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, comment_flags: @comment_flags } %>