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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
f3f27fee
Commit
f3f27fee
authored
Dec 16, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Left-side navigation for group layout
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7b71a9e2
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
98 additions
and
84 deletions
+98
-84
app/assets/stylesheets/sections/events.scss
app/assets/stylesheets/sections/events.scss
+1
-1
app/assets/stylesheets/sections/sidebar.scss
app/assets/stylesheets/sections/sidebar.scss
+2
-2
app/helpers/groups_helper.rb
app/helpers/groups_helper.rb
+9
-1
app/views/groups/_settings_nav.html.haml
app/views/groups/_settings_nav.html.haml
+1
-1
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+33
-37
app/views/groups/projects.html.haml
app/views/groups/projects.html.haml
+24
-28
app/views/layouts/group.html.haml
app/views/layouts/group.html.haml
+11
-7
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+14
-4
app/views/layouts/project_settings.html.haml
app/views/layouts/project_settings.html.haml
+1
-1
app/views/layouts/projects.html.haml
app/views/layouts/projects.html.haml
+1
-1
app/views/projects/_settings_nav.html.haml
app/views/projects/_settings_nav.html.haml
+1
-1
No files found.
app/assets/stylesheets/sections/events.scss
View file @
f3f27fee
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
}
}
}
}
.
project
.event_filter
{
.
sidenav
.event_filter
{
position
:
static
;
position
:
static
;
float
:
left
;
float
:
left
;
width
:
100%
;
width
:
100%
;
...
...
app/assets/stylesheets/sections/sidebar.scss
View file @
f3f27fee
body
.
project
{
body
.
sidenav
{
padding
:
0
;
padding
:
0
;
&
.ui_mars
{
&
.ui_mars
{
...
@@ -119,7 +119,7 @@ body.project {
...
@@ -119,7 +119,7 @@ body.project {
}
}
}
}
.
project-settings-
nav
{
.
sidebar-sub
nav
{
margin-left
:
0px
;
margin-left
:
0px
;
padding-left
:
0px
;
padding-left
:
0px
;
...
...
app/helpers/groups_helper.rb
View file @
f3f27fee
...
@@ -44,4 +44,12 @@ module GroupsHelper
...
@@ -44,4 +44,12 @@ module GroupsHelper
path
<<
"?
#{
options
.
to_param
}
"
path
<<
"?
#{
options
.
to_param
}
"
path
path
end
end
def
group_settings_page?
if
current_controller?
(
'groups'
)
current_action?
(
'edit'
)
||
current_action?
(
'projects'
)
else
false
end
end
end
end
app/views/groups/_settings_nav.html.haml
View file @
f3f27fee
%ul
.
nav.nav-pills.nav-stacked.nav-stacked-menu
%ul
.
sidebar-subnav
=
nav_link
(
path:
'groups#edit'
)
do
=
nav_link
(
path:
'groups#edit'
)
do
=
link_to
edit_group_path
(
@group
)
do
=
link_to
edit_group_path
(
@group
)
do
%i
.fa.fa-pencil-square-o
%i
.fa.fa-pencil-square-o
...
...
app/views/groups/edit.html.haml
View file @
f3f27fee
.row
.panel.panel-default
.col-md-2
=
render
'settings_nav'
.col-md-10
.panel.panel-default
.panel-heading
.panel-heading
%strong
=
@group
.
name
%strong
=
@group
.
name
group settings:
group settings:
...
@@ -30,7 +26,7 @@
...
@@ -30,7 +26,7 @@
.form-actions
.form-actions
=
f
.
submit
'Save group'
,
class:
"btn btn-save"
=
f
.
submit
'Save group'
,
class:
"btn btn-save"
.panel.panel-danger
.panel.panel-danger
.panel-heading
Remove group
.panel-heading
Remove group
.panel-body
.panel-body
%p
%p
...
...
app/views/groups/projects.html.haml
View file @
f3f27fee
.row
.panel.panel-default
.col-md-2
=
render
'settings_nav'
.col-md-10
.panel.panel-default
.panel-heading
.panel-heading
%strong
=
@group
.
name
%strong
=
@group
.
name
projects:
projects:
...
@@ -26,4 +22,4 @@
...
@@ -26,4 +22,4 @@
-
if
@projects
.
blank?
-
if
@projects
.
blank?
.nothing-here-block
This group has no projects yet
.nothing-here-block
This group has no projects yet
=
paginate
@projects
,
theme:
"gitlab"
=
paginate
@projects
,
theme:
"gitlab"
app/views/layouts/group.html.haml
View file @
f3f27fee
!!! 5
!!! 5
%html
{
lang:
"en"
}
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
group_head_title
=
render
"layouts/head"
,
title:
group_head_title
%body
{
class:
"#{app_theme} application"
,
:'data-page'
=>
body_data_page
}
%body
{
class:
"#{app_theme} application
sidenav
"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/broadcast"
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
"group:
#{
@group
.
name
}
"
=
render
"layouts/head_panel"
,
title:
"group:
#{
@group
.
name
}
"
%nav
.main-nav.navbar-collapse.collapse
.page-with-sidebar
.container
=
render
'layouts/nav/group'
.sidebar-wrapper
.container
=
render
'layouts/nav/group'
.content-wrapper
.container-fluid
.content
.content
=
render
"layouts/flash"
=
render
"layouts/flash"
.clearfix
=
yield
=
yield
=
yield
:embedded_scripts
app/views/layouts/nav/_group.html.haml
View file @
f3f27fee
%ul
%ul
.nav.nav-sidebar.navbar-collapse.collapse
=
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
%i
.fa.fa-dashboard
Activity
Activity
=
nav_link
(
controller:
[
:group
,
:milestones
])
do
=
nav_link
(
controller:
[
:group
,
:milestones
])
do
=
link_to
group_milestones_path
(
@group
)
do
=
link_to
group_milestones_path
(
@group
)
do
%i
.fa.fa-clock-o
Milestones
Milestones
=
nav_link
(
path:
'groups#issues'
)
do
=
nav_link
(
path:
'groups#issues'
)
do
=
link_to
issues_group_path
(
@group
)
do
=
link_to
issues_group_path
(
@group
)
do
%i
.fa.fa-exclamation-circle
Issues
Issues
-
if
current_user
-
if
current_user
%span
.count
=
current_user
.
assigned_issues
.
opened
.
of_group
(
@group
).
count
%span
.count
=
current_user
.
assigned_issues
.
opened
.
of_group
(
@group
).
count
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
link_to
merge_requests_group_path
(
@group
)
do
=
link_to
merge_requests_group_path
(
@group
)
do
%i
.fa.fa-tasks
Merge Requests
Merge Requests
-
if
current_user
-
if
current_user
%span
.count
=
current_user
.
cared_merge_requests
.
opened
.
of_group
(
@group
).
count
%span
.count
=
current_user
.
cared_merge_requests
.
opened
.
of_group
(
@group
).
count
=
nav_link
(
path:
'groups#members'
)
do
=
nav_link
(
path:
'groups#members'
)
do
=
link_to
"Members"
,
members_group_path
(
@group
)
=
link_to
members_group_path
(
@group
)
do
%i
.fa.fa-users
Members
-
if
can?
(
current_user
,
:manage_group
,
@group
)
-
if
can?
(
current_user
,
:manage_group
,
@group
)
=
nav_link
(
path:
'groups#edit'
)
do
=
nav_link
(
html_options:
{
class:
"
#{
"active"
if
group_settings_page?
}
separate-item"
})
do
=
link_to
edit_group_path
(
@group
),
class:
"tab "
do
=
link_to
edit_group_path
(
@group
),
class:
"tab no-highlight"
do
%i
.fa.fa-cogs
Settings
Settings
%i
.fa.fa-angle-down
-
if
group_settings_page?
=
render
'groups/settings_nav'
app/views/layouts/project_settings.html.haml
View file @
f3f27fee
!!! 5
!!! 5
%html
{
lang:
"en"
}
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
@project
.
name_with_namespace
=
render
"layouts/head"
,
title:
@project
.
name_with_namespace
%body
{
class:
"#{app_theme} project"
,
:'data-page'
=>
body_data_page
,
:'data-project-id'
=>
@project
.
id
}
%body
{
class:
"#{app_theme}
sidenav
project"
,
:'data-page'
=>
body_data_page
,
:'data-project-id'
=>
@project
.
id
}
=
render
"layouts/broadcast"
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
project_title
(
@project
)
=
render
"layouts/head_panel"
,
title:
project_title
(
@project
)
=
render
"layouts/init_auto_complete"
=
render
"layouts/init_auto_complete"
...
...
app/views/layouts/projects.html.haml
View file @
f3f27fee
!!! 5
!!! 5
%html
{
lang:
"en"
}
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
project_head_title
=
render
"layouts/head"
,
title:
project_head_title
%body
{
class:
"#{app_theme} project"
,
:'data-page'
=>
body_data_page
,
:'data-project-id'
=>
@project
.
id
}
%body
{
class:
"#{app_theme}
sidenav
project"
,
:'data-page'
=>
body_data_page
,
:'data-project-id'
=>
@project
.
id
}
=
render
"layouts/broadcast"
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
project_title
(
@project
)
=
render
"layouts/head_panel"
,
title:
project_title
(
@project
)
=
render
"layouts/init_auto_complete"
=
render
"layouts/init_auto_complete"
...
...
app/views/projects/_settings_nav.html.haml
View file @
f3f27fee
%ul
.project-settings-nav
%ul
.project-settings-nav
.sidebar-subnav
=
nav_link
(
path:
'projects#edit'
)
do
=
nav_link
(
path:
'projects#edit'
)
do
=
link_to
edit_project_path
(
@project
),
class:
"stat-tab tab "
do
=
link_to
edit_project_path
(
@project
),
class:
"stat-tab tab "
do
%i
.fa.fa-pencil-square-o
%i
.fa.fa-pencil-square-o
...
...
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