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