Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
d7eb3145
Commit
d7eb3145
authored
Dec 12, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project titles with namespaces
parent
743073ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+8
-0
app/views/layouts/project_resource.html.haml
app/views/layouts/project_resource.html.haml
+2
-2
No files found.
app/helpers/projects_helper.rb
View file @
d7eb3145
...
...
@@ -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
app/views/layouts/project_resource.html.haml
View file @
d7eb3145
!!! 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment