From 6d86b698e33044f4ffdfa682e47194464ce5702b Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Date: Mon, 4 Nov 2013 15:18:55 +0200 Subject: [PATCH] Always show namespace for project title Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> --- app/helpers/projects_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 864f6c9af9..af19148d23 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -45,7 +45,10 @@ module ProjectsHelper link_to(simple_sanitize(project.group.name), group_path(project.group)) + " / " + project.name end else - project.name + owner = project.namespace.owner + content_tag :span do + link_to(simple_sanitize(owner.name), user_path(owner)) + " / " + project.name + end end end -- 2.30.9