<% provide :title, t("budgets.executions.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_executions_url(@budget), social_title: @budget.name, social_description: @budget.description_for_phase("finished") %> <% end %> <% content_for :canonical do %> <%= render "shared/canonical", href: budget_executions_url(@budget) %> <% end %>
<%= back_link_to budgets_path %>

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

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

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

<%= link_to t("shared.download.link.investments"), current_path_with_query_params(format: :csv), class: "button hollow margin-bottom margin-right float-right-medium" %> <%= form_tag(budget_executions_path(@budget), method: :get) do %>
<%= label_tag :milestone_tag, t("budgets.executions.filters.milestone_tag.label") %> <%= select_tag :milestone_tag, options_for_select( options_for_milestone_tags, params[:milestone_tag] ), class: "js-submit-on-change", prompt: t("budgets.executions.filters.milestone_tag.all", count: @budget.investments.winners.with_milestones.count) %>
<%= label_tag :status, t("budgets.executions.filters.status.label") %> <%= select_tag :status, options_from_collection_for_select(@statuses, :id, lambda { |s| "#{s.name} (#{filters_select_counts(s.id)})" }, params[:status]), class: "js-submit-on-change", prompt: t("budgets.executions.filters.status.all", count: @budget.investments.winners.with_milestones.count) %>
<% end %> <% if @investments_by_heading.any? %> <%= render "budgets/executions/investments" %> <% else %>
<%= t("budgets.executions.no_winner_investments") %>
<% end %>