Reimplements several bi views

This commit is contained in:
kikito
2016-12-02 19:23:46 +01:00
parent 4372238df8
commit c1f62dd317
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<% provide :title do %><%= investment.title %><% end %>
<%= render partial: '/budgets/investments/investment', locals: { investment: @investment, investment_votes: @investment_votes } %>
<%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, comment_flags: @comment_flags } %>

View File

@@ -0,0 +1,27 @@
<main>
<span class="not-print">
<%= render 'admin/shared/budget_investment_search', url: management_budgets_investments_path %>
</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.investments.filters.unfeasible")) if params[:unfeasible].present? %>
<%= content_tag(:h2, t("management.investments.filters.by_geozone", geozone: @geozone_name)) if @geozone_name.present? %>
<% if params[:search].present? %>
<h2>
<%= page_entries_info @investments %>
<%= t("management.investments.search_results", count: @investments.size, search_term: params[:search]) %>
</h2>
<% end %>
</div>
<% @investments.each do |investment| %>
<%= render partial: '/budgets/investments/investment', locals: { investment: investment, investment_votes: @investment_votes } %>
<% end %>
<%= paginate @investments %>
</div>
</div>
</main>

View File

@@ -0,0 +1,5 @@
<% provide :title do %><%= investment.title %><% end %>
<%= render '/shared/print' %>
<%= render partial: '/budgets/investments/investment', locals: { investment: @investment, investment_votes: @investment_votes } %>