We're also adding a bit of consistency, since most of our calls to partial rendering omit the `partial` and `locals` keys.
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
<main>
|
|
<span class="not-print">
|
|
<%= render "admin/shared/budget_investment_search", url: management_budget_investments_path(@budget) %>
|
|
</span>
|
|
|
|
<div class="wrap row">
|
|
<div id="budget-investments" class="budget-investments-list small-12 medium-9 column">
|
|
|
|
<div class="small-12 search-results">
|
|
<%= content_tag(:h2, t("management.budget_investments.filters.unfeasible")) if params[:unfeasible].present? %>
|
|
<%= content_tag(:h2, t("management.budget_investments.filters.heading", heading: @heading.name)) if @heading.present? %>
|
|
<% if params[:search].present? %>
|
|
<h2>
|
|
<%= page_entries_info @investments %>
|
|
<%= t("management.budget_investments.search_results", count: @investments.size, search_term: params[:search]) %>
|
|
</h2>
|
|
<% end %>
|
|
</div>
|
|
|
|
<% @investments.each do |investment| %>
|
|
<%= render "/budgets/investments/investment",
|
|
investment: investment,
|
|
investment_ids: @investment_ids,
|
|
investment_votes: @investment_votes,
|
|
ballot: @ballot
|
|
%>
|
|
<% end %>
|
|
|
|
<%= paginate @investments %>
|
|
</div>
|
|
</div>
|
|
</main>
|