Show project with namespace in feeds
This commit is contained in:
parent
8a08fdcd32
commit
f4d9059b7e
3 changed files with 12 additions and 3 deletions
|
@ -8,11 +8,19 @@ module ProjectsHelper
|
|||
end
|
||||
|
||||
def link_to_project project
|
||||
link_to project.name, project
|
||||
link_to project do
|
||||
title = content_tag(:strong, project.name)
|
||||
|
||||
if project.namespace
|
||||
namespace = content_tag(:span, "#{project.namespace.human_name} / ", class: 'tiny')
|
||||
title = namespace + title
|
||||
end
|
||||
|
||||
title
|
||||
end
|
||||
end
|
||||
|
||||
def tm_path team_member
|
||||
project_team_member_path(@project, team_member)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue