Project titles with namespaces
This commit is contained in:
parent
743073ce5f
commit
d7eb314553
|
@ -23,4 +23,12 @@ module ProjectsHelper
|
|||
def tm_path team_member
|
||||
project_team_member_path(@project, team_member)
|
||||
end
|
||||
|
||||
def project_title project
|
||||
if project.group
|
||||
project.name_with_namespace
|
||||
else
|
||||
project.name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
!!! 5
|
||||
%html{ lang: "en"}
|
||||
= render "layouts/head", title: @project.name
|
||||
= render "layouts/head", title: @project.name_with_namespace
|
||||
%body{class: "#{app_theme} project"}
|
||||
= render "layouts/flash"
|
||||
= render "layouts/head_panel", title: @project.name
|
||||
= render "layouts/head_panel", title: project_title(@project)
|
||||
- if can?(current_user, :download_code, @project)
|
||||
= render 'shared/no_ssh'
|
||||
.container
|
||||
|
|
Loading…
Reference in a new issue