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
Jérome Perrin
gitlab-ce
Commits
c727fdd0
Commit
c727fdd0
authored
Nov 13, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group head titles
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e51411ec
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
app/helpers/groups_helper.rb
app/helpers/groups_helper.rb
+19
-0
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
app/views/layouts/group.html.haml
app/views/layouts/group.html.haml
+1
-1
No files found.
app/helpers/groups_helper.rb
View file @
c727fdd0
...
@@ -2,4 +2,23 @@ module GroupsHelper
...
@@ -2,4 +2,23 @@ module GroupsHelper
def
remove_user_from_group_message
(
group
,
user
)
def
remove_user_from_group_message
(
group
,
user
)
"You are going to remove
#{
user
.
name
}
from
#{
group
.
name
}
Group. Are you sure?"
"You are going to remove
#{
user
.
name
}
from
#{
group
.
name
}
Group. Are you sure?"
end
end
def
group_head_title
title
=
@group
.
name
title
=
if
current_action?
(
:issues
)
"Issues - "
+
title
elsif
current_action?
(
:merge_requests
)
"Merge requests - "
+
title
elsif
current_action?
(
:members
)
"Members - "
+
title
elsif
current_action?
(
:edit
)
"Settings - "
+
title
else
title
end
title
end
end
end
app/helpers/projects_helper.rb
View file @
c727fdd0
...
@@ -158,7 +158,7 @@ module ProjectsHelper
...
@@ -158,7 +158,7 @@ module ProjectsHelper
elsif
current_controller?
(
:blob
)
elsif
current_controller?
(
:blob
)
"
#{
@project
.
path
}
\/
#{
@blob
.
path
}
at
#{
@ref
}
- "
+
title
"
#{
@project
.
path
}
\/
#{
@blob
.
path
}
at
#{
@ref
}
- "
+
title
elsif
current_controller?
(
:commits
)
elsif
current_controller?
(
:commits
)
"Commits - "
+
title
"Commits
at
#{
@ref
}
- "
+
title
elsif
current_controller?
(
:merge_requests
)
elsif
current_controller?
(
:merge_requests
)
if
current_action?
(
:show
)
if
current_action?
(
:show
)
"Merge request #
#{
@merge_request
.
iid
}
- "
+
title
"Merge request #
#{
@merge_request
.
iid
}
- "
+
title
...
...
app/views/layouts/group.html.haml
View file @
c727fdd0
!!! 5
!!! 5
%html
{
lang:
"en"
}
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
"
#{
@group
.
name
}
"
=
render
"layouts/head"
,
title:
group_head_title
%body
{
class:
"#{app_theme} application"
,
:'data-page'
=>
body_data_page
}
%body
{
class:
"#{app_theme} application"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/head_panel"
,
title:
"group:
#{
@group
.
name
}
"
=
render
"layouts/head_panel"
,
title:
"group:
#{
@group
.
name
}
"
=
render
"layouts/flash"
=
render
"layouts/flash"
...
...
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