diff --git a/tracks/app/controllers/projects_controller.rb b/tracks/app/controllers/projects_controller.rb index 5508882c..668b9d45 100644 --- a/tracks/app/controllers/projects_controller.rb +++ b/tracks/app/controllers/projects_controller.rb @@ -18,6 +18,7 @@ class ProjectsController < ApplicationController if params[:only_active_with_no_next_actions] @projects = @projects.select { |p| p.active? && count_undone_todos(p) == 0 } end + init_project_hidden_todo_counts(['project']) respond_to do |format| format.html &render_projects_html format.m &render_projects_mobile @@ -185,7 +186,6 @@ class ProjectsController < ApplicationController def render_projects_html lambda do - init_project_hidden_todo_counts(['project']) @page_title = "TRACKS::List Projects" @count = current_user.projects.size @active_projects = @projects.select{ |p| p.active? } diff --git a/tracks/app/helpers/application_helper.rb b/tracks/app/helpers/application_helper.rb index b35ac97d..d1d2c1a1 100644 --- a/tracks/app/helpers/application_helper.rb +++ b/tracks/app/helpers/application_helper.rb @@ -89,7 +89,7 @@ module ApplicationHelper end end - # Returns a count of next actions in the given context or project The result + # Returns a count of next actions in the given context or project. The result # is count and a string descriptor, correctly pluralised if there are no # actions or multiple actions # diff --git a/tracks/app/views/contexts/_mobile_context_listing.rhtml b/tracks/app/views/contexts/_mobile_context_listing.rhtml index a43582c5..6d792961 100644 --- a/tracks/app/views/contexts/_mobile_context_listing.rhtml +++ b/tracks/app/views/contexts/_mobile_context_listing.rhtml @@ -1,2 +1,2 @@ <% context = mobile_context_listing %> -