Prefixed all page titles with "TRACKS::" to make them more obvious when you have several windows open. Fixes ticket:15 suggested by timfm.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@51 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-03-30 08:54:28 +00:00
parent 5fc3636f72
commit 7c814b5131
4 changed files with 11 additions and 10 deletions

View file

@ -17,7 +17,7 @@ class TodoController < ApplicationController
end
def list
@page_title = "List tasks"
@page_title = "TRACKS::List tasks"
@projects = Project.find_all
@places = Context.find_all
@shown_places = Context.find_all_by_hide( 0, "position ASC")
@ -33,7 +33,7 @@ class TodoController < ApplicationController
#
# Use days declaration? 1.day.ago?
def completed
@page_title = "Completed tasks"
@page_title = "TRACKS::Completed tasks"
today_query = "DATE_SUB(CURDATE(),INTERVAL 1 DAY) <= completed"
week_query = "DATE_SUB(CURDATE(),INTERVAL 2 DAY) >= completed
AND DATE_SUB(CURDATE(),INTERVAL 7 DAY) <= completed"
@ -50,7 +50,7 @@ class TodoController < ApplicationController
# Archived completed items, older than 31 days
#
def completed_archive
@page_title = "Archived completed tasks"
@page_title = "TRACKS::Archived completed tasks"
archive_query = "DATE_SUB(CURDATE(),INTERVAL 32 DAY) >= completed"
@done_archive = Todo.find_by_sql( "SELECT * FROM todos WHERE done = 1 AND #{archive_query}
ORDER BY completed DESC;" )
@ -80,7 +80,7 @@ class TodoController < ApplicationController
@belongs = @item.project_id
@projects = Project.find_all
@places = Context.find_all
@page_title = "Edit task: #{@item.description}"
@page_title = "TRACKS::Edit task: #{@item.description}"
end