summaryrefslogtreecommitdiff
path: root/app/helpers/groups_helper.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-09-17 12:16:24 +0200
committerDouwe Maan <douwe@gitlab.com>2015-09-17 12:16:24 +0200
commitd89ae7df2cf02198570dddd80dfef60796b017b5 (patch)
tree1028ad42df5de354e9ab3e8472a17d379f10fd53 /app/helpers/groups_helper.rb
parentf4816372457c3b513f8707efd87ce34c9922177c (diff)
downloadgitlab-ce-d89ae7df2cf02198570dddd80dfef60796b017b5.tar.gz
Move project header title definition to view in question.
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r--app/helpers/groups_helper.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index 5e70de23f29..1d36969cd62 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -31,12 +31,12 @@ module GroupsHelper
end
end
- def group_title(group, name, url)
+ def group_title(group, name = nil, url = nil)
+ full_title = link_to(simple_sanitize(group.name), group_path(group))
+ full_title += ' &middot; '.html_safe + link_to(simple_sanitize(name), url) if name
+
content_tag :span do
- link_to(
- simple_sanitize(group.name), group_path(group)
- ) + ' &middot; '.html_safe +
- link_to(simple_sanitize(name), url)
+ full_title
end
end
end