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
|
end
|
||||||
|
|
||||||
def html_title(*args)
|
def html_title(*args)
|
||||||
|
puts "HTML_TITLE #{args.join(',')}"
|
||||||
if args.empty?
|
if args.empty?
|
||||||
title = []
|
title = []
|
||||||
title << @project.name if @project
|
title << @project.name if @project
|
||||||
title += @html_title if @html_title
|
title += @html_title if @html_title
|
||||||
title << Setting.app_title
|
title << Setting.app_title
|
||||||
title.compact.join(' - ')
|
title.select {|t| !t.blank? }.join(' - ')
|
||||||
else
|
else
|
||||||
@html_title ||= []
|
@html_title ||= []
|
||||||
@html_title += args
|
@html_title += args
|
||||||
|
|
Loading…
Reference in New Issue