Add total Investments in the execution list

This commit is contained in:
María Checa
2018-07-24 19:42:19 +02:00
committed by Javi Martín
parent d089cc14a5
commit b6fdf732f2
6 changed files with 44 additions and 12 deletions

View File

@@ -57,9 +57,12 @@
<div class="small-12 medium-3 column">
<%= label_tag t("budgets.executions.filters.label") %>
<%= select_tag :status,
options_from_collection_for_select(@statuses, :id, :name, params[: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.all") %>
prompt: t("budgets.executions.filters.all",
count: @budget.investments.winners.with_milestones.count) %>
</div>
<% end %>