Files
grecia/app/components/budgets/investments_list_component.html.erb
decabeza 4a9aae9806 Add groups index page
When render the investment list component with the link "see all
investments", now we redirect to groups index page when a budget has
multiple headings.
2021-08-09 21:45:29 +02:00

22 lines
664 B
Plaintext

<% if investments.any? %>
<section id="investments_list" class="investments-list">
<header>
<h2><%= t("budgets.investments_list.title") %></h2>
</header>
<% investments.each do |investment| %>
<%= render Budgets::InvestmentComponent.new(investment) %>
<% end %>
</section>
<% end %>
<% if budget.single_heading? && !budget.informing? || investments.any? %>
<div class="row margin-top">
<div class="small-12 medium-6 large-4 small-centered column margin-top">
<%= link_to t("budgets.investments_list.see_all"),
see_all_path,
class: "button expanded" %>
</div>
</div>
<% end %>