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
630aeb31
Commit
630aeb31
authored
Jun 10, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add back sidebar counters and username
parent
67a18f34
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
15 deletions
+33
-15
app/assets/stylesheets/framework/gitlab-theme.scss
app/assets/stylesheets/framework/gitlab-theme.scss
+5
-1
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+1
-0
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+0
-1
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+14
-3
app/helpers/nav_helper.rb
app/helpers/nav_helper.rb
+1
-7
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+4
-2
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+1
-1
app/views/layouts/nav/_admin.html.haml
app/views/layouts/nav/_admin.html.haml
+4
-0
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+3
-0
No files found.
app/assets/stylesheets/framework/gitlab-theme.scss
View file @
630aeb31
...
@@ -10,8 +10,12 @@
...
@@ -10,8 +10,12 @@
.page-with-sidebar
{
.page-with-sidebar
{
.collapse-nav
a
{
.collapse-nav
a
{
color
:
$
white
-light
;
color
:
$
color
-light
;
background
:
$color
;
background
:
$color
;
&
:hover
{
color
:
$white-light
;
}
}
}
.sidebar-wrapper
{
.sidebar-wrapper
{
...
...
app/assets/stylesheets/framework/header.scss
View file @
630aeb31
...
@@ -28,6 +28,7 @@ header {
...
@@ -28,6 +28,7 @@ header {
height
:
$header-height
;
height
:
$header-height
;
background-color
:
$background-color
;
background-color
:
$background-color
;
border
:
none
;
border
:
none
;
border-bottom
:
1px
solid
$border-color
;
@media
(
max-width
:
$screen-xs-min
)
{
@media
(
max-width
:
$screen-xs-min
)
{
padding
:
0
16px
;
padding
:
0
16px
;
...
...
app/assets/stylesheets/framework/nav.scss
View file @
630aeb31
...
@@ -172,7 +172,6 @@
...
@@ -172,7 +172,6 @@
>
form
{
>
form
{
display
:
inline-block
;
display
:
inline-block
;
margin-top
:
-1px
;
margin-top
:
-1px
;
margin-bottom
:
12px
;
}
}
.icon-label
{
.icon-label
{
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
630aeb31
...
@@ -115,6 +115,12 @@
...
@@ -115,6 +115,12 @@
}
}
}
}
}
}
.count
{
float
:
right
;
padding
:
0
8px
;
@include
border-radius
(
6px
);
}
}
}
.sidebar-subnav
{
.sidebar-subnav
{
...
@@ -131,9 +137,10 @@
...
@@ -131,9 +137,10 @@
position
:
fixed
;
position
:
fixed
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
font-size
:
13px
;
padding
:
5px
0
;
font-size
:
18px
;
background
:
transparent
;
background
:
transparent
;
height
:
4
0px
;
height
:
5
0px
;
text-align
:
center
;
text-align
:
center
;
line-height
:
40px
;
line-height
:
40px
;
transition-duration
:
.3s
;
transition-duration
:
.3s
;
...
@@ -157,7 +164,7 @@
...
@@ -157,7 +164,7 @@
width
:
0
;
width
:
0
;
.nav-sidebar
{
.nav-sidebar
{
width
:
$sidebar_collapsed_width
;
width
:
0
;
li
{
li
{
width
:
auto
;
width
:
auto
;
...
@@ -172,6 +179,10 @@
...
@@ -172,6 +179,10 @@
.collapse-nav
a
{
.collapse-nav
a
{
width
:
0
;
width
:
0
;
i
{
display
:
none
;
}
}
}
.sidebar-user
{
.sidebar-user
{
...
...
app/helpers/nav_helper.rb
View file @
630aeb31
...
@@ -36,13 +36,7 @@ module NavHelper
...
@@ -36,13 +36,7 @@ module NavHelper
end
end
def
nav_header_class
def
nav_header_class
class_name
=
class_name
=
" with-horizontal-nav"
if
defined?
(
nav
)
&&
nav
if
nav_menu_collapsed?
"header-collapsed"
else
"header-expanded"
end
class_name
+=
" with-horizontal-nav"
if
defined?
(
nav
)
&&
nav
class_name
class_name
end
end
...
...
app/views/layouts/_page.html.haml
View file @
630aeb31
...
@@ -11,8 +11,10 @@
...
@@ -11,8 +11,10 @@
.collapse-nav
.collapse-nav
=
render
partial:
'layouts/collapse_button'
=
render
partial:
'layouts/collapse_button'
-
if
current_user
-
if
current_user
=
link_to
current_user
,
class:
'sidebar-user'
,
title:
"Profile"
,
data:
{
user:
current_user
.
username
}
do
=
link_to
current_user
,
class:
'sidebar-user'
,
title:
"Profile"
do
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'Profile'
,
class:
'avatar avatar s46'
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'Profile'
,
class:
'avatar avatar s36'
.username
=
current_user
.
username
-
if
defined?
(
nav
)
&&
nav
-
if
defined?
(
nav
)
&&
nav
.layout-nav
.layout-nav
%div
{
class:
(
container_class
)
}
%div
{
class:
(
container_class
)
}
...
...
app/views/layouts/header/_default.html.haml
View file @
630aeb31
%header
.navbar.navbar-fixed-top.navbar-gitlab.header-collapsed
%header
.navbar.navbar-fixed-top.navbar-gitlab.header-collapsed
{
class:
nav_header_class
}
%div
{
class:
fluid_layout
?
"container-fluid"
:
"container-fluid"
}
%div
{
class:
fluid_layout
?
"container-fluid"
:
"container-fluid"
}
.header-content
.header-content
%button
.side-nav-toggle
{
type:
'button'
}
%button
.side-nav-toggle
{
type:
'button'
}
...
...
app/views/layouts/nav/_admin.html.haml
View file @
630aeb31
...
@@ -29,11 +29,13 @@
...
@@ -29,11 +29,13 @@
=
icon
(
'cog fw'
)
=
icon
(
'cog fw'
)
%span
%span
Runners
Runners
%span
.count
=
number_with_delimiter
(
Ci
::
Runner
.
count
(
:all
))
=
nav_link
path:
'builds#index'
do
=
nav_link
path:
'builds#index'
do
=
link_to
admin_builds_path
,
title:
'Builds'
do
=
link_to
admin_builds_path
,
title:
'Builds'
do
=
icon
(
'link fw'
)
=
icon
(
'link fw'
)
%span
%span
Builds
Builds
%span
.count
=
number_with_delimiter
(
Ci
::
Build
.
count
(
:all
))
=
nav_link
(
controller: :logs
)
do
=
nav_link
(
controller: :logs
)
do
=
link_to
admin_logs_path
,
title:
'Logs'
do
=
link_to
admin_logs_path
,
title:
'Logs'
do
=
icon
(
'file-text fw'
)
=
icon
(
'file-text fw'
)
...
@@ -88,6 +90,7 @@
...
@@ -88,6 +90,7 @@
=
icon
(
'exclamation-circle fw'
)
=
icon
(
'exclamation-circle fw'
)
%span
%span
Abuse Reports
Abuse Reports
%span
.count
=
number_with_delimiter
(
AbuseReport
.
count
(
:all
))
-
if
askimet_enabled?
-
if
askimet_enabled?
=
nav_link
(
controller: :spam_logs
)
do
=
nav_link
(
controller: :spam_logs
)
do
...
@@ -95,6 +98,7 @@
...
@@ -95,6 +98,7 @@
=
icon
(
'exclamation-triangle fw'
)
=
icon
(
'exclamation-triangle fw'
)
%span
%span
Spam Logs
Spam Logs
%span
.count
=
number_with_delimiter
(
SpamLog
.
count
(
:all
))
=
nav_link
(
controller: :application_settings
,
html_options:
{
class:
'separate-item'
})
do
=
nav_link
(
controller: :application_settings
,
html_options:
{
class:
'separate-item'
})
do
=
link_to
admin_application_settings_path
,
title:
'Settings'
do
=
link_to
admin_application_settings_path
,
title:
'Settings'
do
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
630aeb31
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
=
icon
(
'bell fw'
)
=
icon
(
'bell fw'
)
%span
%span
Todos
Todos
%span
.count
=
number_with_delimiter
(
todos_pending_count
)
=
nav_link
(
path:
'dashboard#activity'
)
do
=
nav_link
(
path:
'dashboard#activity'
)
do
=
link_to
activity_dashboard_path
,
class:
'dashboard-shortcuts-activity'
,
title:
'Activity'
do
=
link_to
activity_dashboard_path
,
class:
'dashboard-shortcuts-activity'
,
title:
'Activity'
do
=
navbar_icon
(
'activity'
)
=
navbar_icon
(
'activity'
)
...
@@ -29,11 +30,13 @@
...
@@ -29,11 +30,13 @@
=
navbar_icon
(
'issues'
)
=
navbar_icon
(
'issues'
)
%span
%span
Issues
Issues
%span
.count
=
number_with_delimiter
(
current_user
.
assigned_issues
.
opened
.
count
)
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'dashboard-shortcuts-merge_requests'
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'dashboard-shortcuts-merge_requests'
do
=
navbar_icon
(
'mr'
)
=
navbar_icon
(
'mr'
)
%span
%span
Merge Requests
Merge Requests
%span
.count
=
number_with_delimiter
(
current_user
.
assigned_merge_requests
.
opened
.
count
)
=
nav_link
(
controller: :snippets
)
do
=
nav_link
(
controller: :snippets
)
do
=
link_to
dashboard_snippets_path
,
title:
'Snippets'
do
=
link_to
dashboard_snippets_path
,
title:
'Snippets'
do
=
icon
(
'clipboard fw'
)
=
icon
(
'clipboard fw'
)
...
...
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