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
Boxiang Sun
gitlab-ce
Commits
e9eeeaa0
Commit
e9eeeaa0
authored
Apr 28, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redesign navigation for group pages
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
4a3f3bc7
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
31 additions
and
34 deletions
+31
-34
app/views/groups/activity.html.haml
app/views/groups/activity.html.haml
+0
-1
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+0
-2
app/views/groups/group_members/index.html.haml
app/views/groups/group_members/index.html.haml
+0
-1
app/views/groups/issues.html.haml
app/views/groups/issues.html.haml
+0
-1
app/views/groups/merge_requests.html.haml
app/views/groups/merge_requests.html.haml
+0
-1
app/views/groups/milestones/index.html.haml
app/views/groups/milestones/index.html.haml
+0
-1
app/views/groups/projects.html.haml
app/views/groups/projects.html.haml
+0
-1
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+0
-6
app/views/layouts/group.html.haml
app/views/layouts/group.html.haml
+2
-1
app/views/layouts/group_settings.html.haml
app/views/layouts/group_settings.html.haml
+2
-2
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+2
-2
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+25
-15
No files found.
app/views/groups/activity.html.haml
View file @
e9eeeaa0
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
-
page_title
"Activity"
-
page_title
"Activity"
-
header_title
group_title
(
@group
,
"Activity"
,
activity_group_path
(
@group
))
%section
.activities
%section
.activities
=
render
'activities'
=
render
'activities'
app/views/groups/edit.html.haml
View file @
e9eeeaa0
-
header_title
group_title
(
@group
,
"Settings"
,
edit_group_path
(
@group
))
.panel.panel-default.prepend-top-default
.panel.panel-default.prepend-top-default
.panel-heading
.panel-heading
Group settings
Group settings
...
...
app/views/groups/group_members/index.html.haml
View file @
e9eeeaa0
-
page_title
"Members"
-
page_title
"Members"
-
header_title
group_title
(
@group
,
"Members"
,
group_group_members_path
(
@group
))
.group-members-page.prepend-top-default
.group-members-page.prepend-top-default
-
if
current_user
&&
current_user
.
can?
(
:admin_group_member
,
@group
)
-
if
current_user
&&
current_user
.
can?
(
:admin_group_member
,
@group
)
...
...
app/views/groups/issues.html.haml
View file @
e9eeeaa0
-
page_title
"Issues"
-
page_title
"Issues"
-
header_title
group_title
(
@group
,
"Issues"
,
issues_group_path
(
@group
))
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
-
if
current_user
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
issues"
)
=
auto_discovery_link_tag
(
:atom
,
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
issues"
)
...
...
app/views/groups/merge_requests.html.haml
View file @
e9eeeaa0
-
page_title
"Merge Requests"
-
page_title
"Merge Requests"
-
header_title
group_title
(
@group
,
"Merge Requests"
,
merge_requests_group_path
(
@group
))
.top-area
.top-area
=
render
'shared/issuable/nav'
,
type: :merge_requests
=
render
'shared/issuable/nav'
,
type: :merge_requests
...
...
app/views/groups/milestones/index.html.haml
View file @
e9eeeaa0
-
page_title
"Milestones"
-
page_title
"Milestones"
-
header_title
group_title
(
@group
,
"Milestones"
,
group_milestones_path
(
@group
))
.top-area
.top-area
=
render
'shared/milestones_filter'
=
render
'shared/milestones_filter'
...
...
app/views/groups/projects.html.haml
View file @
e9eeeaa0
-
page_title
"Projects"
-
page_title
"Projects"
-
header_title
group_title
(
@group
,
"Projects"
,
projects_group_path
(
@group
))
.panel.panel-default.prepend-top-default
.panel.panel-default.prepend-top-default
.panel-heading
.panel-heading
...
...
app/views/groups/show.html.haml
View file @
e9eeeaa0
...
@@ -5,12 +5,6 @@
...
@@ -5,12 +5,6 @@
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
.cover-block
.cover-block
.cover-controls
-
if
@group
&&
can?
(
current_user
,
:admin_group
,
@group
)
=
link_to
icon
(
'pencil'
),
edit_group_path
(
@group
),
class:
'btn'
-
if
current_user
=
link_to
icon
(
'rss'
),
group_path
(
@group
,
{
format: :atom
,
private_token:
current_user
.
private_token
}),
title:
"Feed"
,
class:
'btn rss-btn'
.avatar-holder
.avatar-holder
=
link_to
group_icon
(
@group
),
target:
'_blank'
do
=
link_to
group_icon
(
@group
),
target:
'_blank'
do
=
image_tag
group_icon
(
@group
),
class:
"avatar group-avatar s90"
=
image_tag
group_icon
(
@group
),
class:
"avatar group-avatar s90"
...
...
app/views/layouts/group.html.haml
View file @
e9eeeaa0
-
page_title
@group
.
name
-
page_title
@group
.
name
-
page_description
@group
.
description
unless
page_description
-
page_description
@group
.
description
unless
page_description
-
header_title
group_title
(
@group
)
unless
header_title
-
header_title
group_title
(
@group
)
unless
header_title
-
sidebar
"group"
unless
sidebar
-
sidebar
"dashboard"
unless
sidebar
-
nav
"group"
=
render
template:
"layouts/application"
=
render
template:
"layouts/application"
app/views/layouts/group_settings.html.haml
View file @
e9eeeaa0
-
page_title
"Settings"
-
page_title
"Settings"
-
header_title
group_title
(
@group
,
"Settings"
,
edit_group_path
(
@group
))
-
sidebar
"dashboard"
unless
sidebar
-
sidebar
"group_settings
"
-
nav
"group
"
=
render
template:
"layouts/group"
=
render
template:
"layouts/group"
app/views/layouts/nav/_dashboard.html.haml
View file @
e9eeeaa0
...
@@ -15,12 +15,12 @@
...
@@ -15,12 +15,12 @@
=
icon
(
'dashboard fw'
)
=
icon
(
'dashboard fw'
)
%span
%span
Activity
Activity
=
nav_link
(
controller:
:groups
)
do
=
nav_link
(
controller:
[
:groups
,
'groups/milestones'
,
'groups/group_members'
]
)
do
=
link_to
dashboard_groups_path
,
title:
'Groups'
do
=
link_to
dashboard_groups_path
,
title:
'Groups'
do
=
icon
(
'group fw'
)
=
icon
(
'group fw'
)
%span
%span
Groups
Groups
=
nav_link
(
controller:
:milestones
)
do
=
nav_link
(
controller:
'dashboard/milestones'
)
do
=
link_to
dashboard_milestones_path
,
title:
'Milestones'
do
=
link_to
dashboard_milestones_path
,
title:
'Milestones'
do
=
icon
(
'clock-o fw'
)
=
icon
(
'clock-o fw'
)
%span
%span
...
...
app/views/layouts/nav/_group.html.haml
View file @
e9eeeaa0
%ul
.nav.nav-sidebar
-
if
current_user
=
nav_link
do
.controls
=
link_to
root_path
,
title:
'Go to dashboard'
,
class:
'back-link'
do
-
if
current_path?
(
'groups#show'
)
=
icon
(
'caret-square-o-left fw'
)
=
link_to
icon
(
'rss'
),
group_path
(
@group
,
{
format: :atom
,
private_token:
current_user
.
private_token
}),
title:
"Feed"
,
class:
'btn btn-gray rss-btn'
%span
Go to dashboard
%li
.separate-item
%span
.dropdown.group-settings-dropdown
%a
.dropdown-new.btn.btn-gray
#group-settings-button
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
=
icon
(
'cog'
)
=
icon
(
'angle-down'
)
%ul
.dropdown-menu.dropdown-menu-align-right
=
nav_link
(
path:
'groups#projects'
)
do
=
link_to
projects_group_path
(
@group
),
title:
'Projects'
do
Projects
%li
.divider
-
if
@group
&&
can?
(
current_user
,
:admin_group
,
@group
)
%li
=
link_to
edit_group_path
(
@group
)
do
Edit Group
-
if
access
=
@group
.
users
.
find
(
current_user
)
%li
=
link_to
leave_group_group_members_path
(
@group
),
data:
{
confirm:
leave_group_message
(
@group
.
name
)
},
method: :delete
,
title:
'Leave group'
do
Leave Group
%ul
.nav-links
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
group_path
(
@group
),
title:
'Home'
do
=
link_to
group_path
(
@group
),
title:
'Home'
do
=
icon
(
'group fw'
)
=
icon
(
'group fw'
)
...
@@ -28,22 +44,16 @@
...
@@ -28,22 +44,16 @@
%span
%span
Issues
Issues
-
issues
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
-
issues
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
%span
.count
=
number_with_delimiter
(
issues
.
count
)
%span
.
badge.
count
=
number_with_delimiter
(
issues
.
count
)
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
icon
(
'tasks fw'
)
=
icon
(
'tasks fw'
)
%span
%span
Merge Requests
Merge Requests
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
%span
.count
=
number_with_delimiter
(
merge_requests
.
count
)
%span
.
badge.
count
=
number_with_delimiter
(
merge_requests
.
count
)
=
nav_link
(
controller:
[
:group_members
])
do
=
nav_link
(
controller:
[
:group_members
])
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
icon
(
'users fw'
)
=
icon
(
'users fw'
)
%span
%span
Members
Members
-
if
can?
(
current_user
,
:admin_group
,
@group
)
=
nav_link
(
html_options:
{
class:
"separate-item"
})
do
=
link_to
edit_group_path
(
@group
),
title:
'Settings'
do
=
icon
(
'cogs fw'
)
%span
Settings
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