Changes the parameters used for index and show partials
This commit is contained in:
@@ -35,7 +35,15 @@
|
|||||||
|
|
||||||
<%= render('shared/order_links', i18n_namespace: "budget.investments.index") unless params[:unfeasible].present? %>
|
<%= 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 %>
|
<%= paginate @investments %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -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 } %>
|
<%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, comment_flags: @comment_flags } %>
|
||||||
|
|||||||
Reference in New Issue
Block a user