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
bca47688
Commit
bca47688
authored
Jul 04, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove current user link to the profile from sidebar
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c20ab9f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
34 deletions
+2
-34
gitlab-theme.scss
app/assets/stylesheets/framework/gitlab-theme.scss
+0
-11
sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+2
-18
_page.html.haml
app/views/layouts/_page.html.haml
+0
-5
No files found.
app/assets/stylesheets/framework/gitlab-theme.scss
View file @
bca47688
...
...
@@ -20,17 +20,6 @@
.sidebar-wrapper
{
background
:
$color-darker
;
.sidebar-user
{
background
:
$color-darker
;
color
:
$color-light
;
&
:hover
{
background-color
:
$color-dark
;
color
:
$white-light
;
text-decoration
:
none
;
}
}
}
.nav-sidebar
li
{
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
bca47688
...
...
@@ -40,32 +40,16 @@
}
}
.sidebar-user
{
padding
:
15px
;
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
$sidebar_width
;
overflow
:
hidden
;
font-size
:
16px
;
line-height
:
36px
;
transition
:
width
$sidebar-transition-duration
,
padding
$sidebar-transition-duration
;
@media
(
min-width
:
$sidebar-breakpoint
)
{
bottom
:
50px
;
}
}
.nav-sidebar
{
position
:
absolute
;
top
:
50px
;
bottom
:
65
px
;
bottom
:
0
px
;
width
:
$sidebar_width
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
@media
(
min-width
:
$sidebar-breakpoint
)
{
bottom
:
115
px
;
bottom
:
50
px
;
}
&
.navbar-collapse
{
...
...
app/views/layouts/_page.html.haml
View file @
bca47688
...
...
@@ -8,11 +8,6 @@
-
else
=
render
'layouts/nav/explore'
-
if
current_user
=
link_to
current_user
,
class:
'sidebar-user'
,
title:
"Profile"
,
data:
{
user:
current_user
.
username
}
do
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'Profile'
,
class:
'avatar avatar s36'
.username
=
current_user
.
username
=
link_to
'#'
,
class:
"nav-header-btn text-center pin-nav-btn has-tooltip
#{
'is-active'
if
pinned_nav?
}
js-nav-pin"
,
title:
pinned_nav?
?
"Unpin navigation"
:
"Pin Navigation"
,
data:
{
placement:
'right'
,
container:
'body'
}
do
%span
.sr-only
Toggle navigation pinning
=
icon
(
'thumb-tack'
)
...
...
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