Slight improvements to the browser views.
ApplicationHelper#set_html_title replaced by html_title with arguments and can be called several times in views to append elements to the title. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1032 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
636579b17d
commit
3e0acc0b7e
69 files changed
+107
-68
No files matched your search
@@ -145,16 +145,17 @@ module ApplicationHelper
|
||||
links.size > 1 ? l(:label_display_per_page, links.join(', ')) : nil
|
||||
end
|
||||
|
||||
def set_html_title(text)
|
||||
@html_header_title = text
|
||||
end
|
||||
|
||||
def html_title
|
||||
title = []
|
||||
title << @project.name if @project
|
||||
title << @html_header_title
|
||||
title << Setting.app_title
|
||||
title.compact.join(' - ')
|
||||
def html_title(*args)
|
||||
if args.empty?
|
||||
title = []
|
||||
title << @project.name if @project
|
||||
title += @html_title if @html_title
|
||||
title << Setting.app_title
|
||||
title.compact.join(' - ')
|
||||
else
|
||||
@html_title ||= []
|
||||
@html_title += args
|
||||
end
|
||||
end
|
||||
|
||||
ACCESSKEYS = {:edit => 'e',
|
||||
|
||||
@@ -55,7 +55,7 @@ module RepositoriesHelper
|
||||
|
||||
def with_leading_slash(path)
|
||||
path ||= ''
|
||||
path.starts_with?("/") ? "/#{path}" : path
|
||||
path.starts_with?('/') ? path : "/#{path}"
|
||||
end
|
||||
|
||||
def subversion_field_tags(form, repository)
|
||||
|
||||
Reference in new issue
Block a user