Make context counts on the stats page a little more portable across databases.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@588 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2007-09-13 03:28:59 +00:00
parent 8c26ea7cb5
commit 054f6d6a77

View file

@ -4,8 +4,8 @@ Of those <%= @projects.count(:conditions => "state = 'active'")%> are active pro
<%= @projects.count(:conditions => "state = 'completed'")%> completed projects</p>
<p>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
<p>You have <%= @actions.reject{ |t| t.completed? }.length %> uncompleted actions of which
<%= @actions.select{ |t| t.deferred? }.length %> are deferred actions.