Changes the parameters used for index and show partials

This commit is contained in:
kikito
2016-12-14 13:43:59 +01:00
parent dc3ceb25cc
commit 6dd71cb508
2 changed files with 14 additions and 3 deletions

View File

@@ -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 %>
</div>

View File

@@ -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 } %>