Small fix to HTML title.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2964 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
83717a9b75
commit
383b2bd903
|
@ -325,12 +325,13 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def html_title(*args)
|
||||
puts "HTML_TITLE #{args.join(',')}"
|
||||
if args.empty?
|
||||
title = []
|
||||
title << @project.name if @project
|
||||
title += @html_title if @html_title
|
||||
title << Setting.app_title
|
||||
title.compact.join(' - ')
|
||||
title.select {|t| !t.blank? }.join(' - ')
|
||||
else
|
||||
@html_title ||= []
|
||||
@html_title += args
|
||||
|
|
Loading…
Reference in New Issue