<% provide :title, t("budgets.results.page_title", budget: @budget.name) %> <% content_for :meta_description do %><%= @budget.description_for_phase("finished") %><% end %> <% provide :social_media_meta_tags do %> <%= render "shared/social_media_meta_tags", social_url: budget_results_url(@budget), social_title: @budget.name, social_description: @budget.description_for_phase("finished") %> <% end %> <% content_for :canonical do %> <%= render "shared/canonical", href: budget_results_url(@budget) %> <% end %>
<%= back_link_to budgets_path %>

<%= t("budgets.results.heading") %>
<%= @budget.name %>

<%= render "budgets/subnav", budget: @budget %>

<%= t("budgets.results.heading_selection_title") %>

<%= link_to t("budgets.results.show_all_link"), "#", class: "js-toggle-link button hollow margin-bottom float-right-medium", data: {"toggle-selector" => ".js-discarded", "toggle-text" => t("budgets.results.hide_discarded_link")} %> <%= link_to t("shared.download.link.investments"), current_path_with_query_params(format: :csv), class: "button hollow margin-bottom margin-right float-right-medium" %> <%= render "results_table", results_type: :compatible, title: @heading.name, heading_price: @heading.price, investments: @investments.compatible %> <% if @investments.incompatible.present? %> <%= render "results_table", results_type: :incompatible, title: t("budgets.results.incompatibles"), heading_price: @heading.price, investments: @investments.incompatible %> <% end %>

<%= link_to budget_path(@budget) do %> <%= t("budgets.results.investment_proyects") %> <% end %>
<%= link_to budget_path(@budget, filter: "unfeasible") do %> <%= t("budgets.results.unfeasible_investment_proyects") %> <% end %>
<%= link_to budget_path(@budget, filter: "unselected") do %> <%= t("budgets.results.not_selected_investment_proyects") %> <% end %>