Removed @html_title assignments in controllers.

Views can now set the header title using set_htmh_title(title) method.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@715 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2007-09-07 20:52:45 +00:00
1 parent fdf842a4c4
commit 7e4611ad31
12 files changed
+25 -6

No files matched your search

-2
View File
@@ -123,14 +123,12 @@ class ApplicationController < ActionController::Base
end
def render_403
@html_title = "403"
@project = nil
render :template => "common/403", :layout => true, :status => 403
return false
end
def render_404
@html_title = "404"
render :template => "common/404", :layout => true, :status => 404
return false
end
-1
View File
@@ -169,7 +169,6 @@ private
def find_project
@issue = Issue.find(params[:id], :include => [:project, :tracker, :status, :author, :priority, :category])
@project = @issue.project
@html_title = "#{@project.name} - #{@issue.tracker.name} ##{@issue.id}"
rescue ActiveRecord::RecordNotFound
render_404
end
-1
View File
@@ -631,7 +631,6 @@ private
# Used as a before_filter
def find_project
@project = Project.find(params[:id])
@html_title = @project.name
rescue ActiveRecord::RecordNotFound
render_404
end
-1
View File
@@ -78,7 +78,6 @@ class SearchController < ApplicationController
private
def find_project
@project = Project.find(params[:id])
@html_title = @project.name
rescue ActiveRecord::RecordNotFound
render_404
end