mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 09:48:50 +01:00
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:
parent
8c26ea7cb5
commit
054f6d6a77
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue