restore page title in tag view

This commit is contained in:
Reinier Balt 2008-08-28 10:25:58 +02:00
parent 9d09a4d47a
commit abdac8855d

View file

@ -337,9 +337,9 @@ class TodosController < ApplicationController
# /todos/tag/[tag_name] shows all the actions tagged with tag_name # /todos/tag/[tag_name] shows all the actions tagged with tag_name
def tag def tag
@page_title = "TRACKS::Tagged with \'#{@tag_name}\'"
@source_view = params['_source_view'] || 'tag' @source_view = params['_source_view'] || 'tag'
@tag_name = params[:name] @tag_name = params[:name]
@page_title = "TRACKS::Tagged with \'#{@tag_name}\'"
# mobile tags are routed with :name ending on .m. So we need to chomp it # mobile tags are routed with :name ending on .m. So we need to chomp it
@tag_name = @tag_name.chomp('.m') if mobile? @tag_name = @tag_name.chomp('.m') if mobile?