Commit d7eb3145 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Project titles with namespaces

parent 743073ce
...@@ -23,4 +23,12 @@ module ProjectsHelper ...@@ -23,4 +23,12 @@ module ProjectsHelper
def tm_path team_member def tm_path team_member
project_team_member_path(@project, team_member) project_team_member_path(@project, team_member)
end end
def project_title project
if project.group
project.name_with_namespace
else
project.name
end
end
end end
!!! 5 !!! 5
%html{ lang: "en"} %html{ lang: "en"}
= render "layouts/head", title: @project.name = render "layouts/head", title: @project.name_with_namespace
%body{class: "#{app_theme} project"} %body{class: "#{app_theme} project"}
= render "layouts/flash" = 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) - if can?(current_user, :download_code, @project)
= render 'shared/no_ssh' = render 'shared/no_ssh'
.container .container
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment