Changeset 850
- Timestamp:
- 05/16/08 14:32:42
- Files:
-
- trunk/tracks/app/controllers/projects_controller.rb (modified) (2 diffs)
- trunk/tracks/app/helpers/application_helper.rb (modified) (1 diff)
- trunk/tracks/app/views/contexts/_mobile_context_listing.rhtml (modified) (1 diff)
- trunk/tracks/app/views/projects/_mobile_project_listing.rhtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tracks/app/controllers/projects_controller.rb
r837 r850 19 19 @projects = @projects.select { |p| p.active? && count_undone_todos(p) == 0 } 20 20 end 21 init_project_hidden_todo_counts(['project']) 21 22 respond_to do |format| 22 23 format.html &render_projects_html … … 186 187 def render_projects_html 187 188 lambda do 188 init_project_hidden_todo_counts(['project'])189 189 @page_title = "TRACKS::List Projects" 190 190 @count = current_user.projects.size trunk/tracks/app/helpers/application_helper.rb
r832 r850 90 90 end 91 91 92 # Returns a count of next actions in the given context or project The result92 # Returns a count of next actions in the given context or project. The result 93 93 # is count and a string descriptor, correctly pluralised if there are no 94 94 # actions or multiple actions trunk/tracks/app/views/contexts/_mobile_context_listing.rhtml
r823 r850 1 1 <% context = mobile_context_listing %> 2 <div id="ctx"><%= link_to context.name, formatted_context_path(context, :m) %>< /div>2 <div id="ctx"><%= link_to context.name, formatted_context_path(context, :m) %><%= " (" + count_undone_todos_phrase(context,"actions") + ")" %></div> trunk/tracks/app/views/projects/_mobile_project_listing.rhtml
r823 r850 1 1 <% project = mobile_project_listing %> 2 <div id="pjr"><%= link_to project.name, formatted_project_path(project) %>< /div>2 <div id="pjr"><%= link_to project.name, formatted_project_path(project) %><%= " (" + count_undone_todos_and_notes_phrase(project,"actions") + ")" %></div>
