displays selected instead of feasible investments
This commit is contained in:
@@ -34,8 +34,8 @@ class Budget
|
||||
stats_cache("total_votes") { @budget.ballots.count }
|
||||
end
|
||||
|
||||
def total_feasible_investments
|
||||
stats_cache("total_feasible_investments") { @budget.investments.feasible.count }
|
||||
def total_selected_investments
|
||||
stats_cache("total_selected_investments") { @budget.investments.selected.count }
|
||||
end
|
||||
|
||||
def total_unfeasible_investments
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<p>
|
||||
<span class="label feasible"></span>
|
||||
<span id="total_feasible_investments">
|
||||
<span class="uppercase"><strong><%= t("budgets.stats.total_feasible_investments") %></strong></span>:
|
||||
<span class="uppercase"><strong><%= t("budgets.stats.total_selected_investments") %></strong></span>:
|
||||
<%= @stats[:total_feasible_investments] %><br>
|
||||
</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user