BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
projects_helper.rb
app/helpers/projects_helper.rb
+8
-0
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