Commit d7eb3145 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Project titles with namespaces

parent f60cc3c66cae
......@@ -23,4 +23,12 @@ def link_to_project project
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
!!! 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
......
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