diff --git a/tracks/app/views/stats/_totals.rhtml b/tracks/app/views/stats/_totals.rhtml index 5fc50382..3b963bc1 100755 --- a/tracks/app/views/stats/_totals.rhtml +++ b/tracks/app/views/stats/_totals.rhtml @@ -4,8 +4,8 @@ Of those <%= @projects.count(:conditions => "state = 'active'")%> are active pro <%= @projects.count(:conditions => "state = 'completed'")%> completed projects

You have <%= @contexts.count%> contexts. -Of those <%= @contexts.count(:conditions => "hide = 'false'")%> are visible contexts and -<%= @contexts.count(:conditions => "hide = 'true'") %> are hidden contexts +Of those <%= @contexts.count(:conditions => ["hide = ?", false])%> are visible contexts and +<%= @contexts.count(:conditions => ["hide = ?", true]) %> are hidden contexts

You have <%= @actions.reject{ |t| t.completed? }.length %> uncompleted actions of which <%= @actions.select{ |t| t.deferred? }.length %> are deferred actions.