Move logout buttom to top right corner
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
509fe1159a
commit
61a3cd6351
4 changed files with 12 additions and 18 deletions
|
@ -130,14 +130,6 @@
|
|||
.username {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.logout-holder {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -188,9 +180,8 @@
|
|||
bottom: 0;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
color: #fff;
|
||||
|
||||
.avatar {
|
||||
.username {
|
||||
margin-top: 5px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,8 +30,12 @@
|
|||
border-right: 1px solid $color-darker;
|
||||
|
||||
.sidebar-user {
|
||||
a {
|
||||
color: $color-light;
|
||||
|
||||
&:hover {
|
||||
background-color: $color-dark;
|
||||
color: #FFF;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,14 +8,10 @@
|
|||
.collapse-nav
|
||||
= render partial: 'layouts/collapse_button'
|
||||
- if current_user
|
||||
.sidebar-user
|
||||
= link_to current_user, class: 'profile-pic', id: 'profile-pic', data: {toggle: 'tooltip', placement: 'top'} do
|
||||
= link_to current_user, class: 'sidebar-user' do
|
||||
= image_tag avatar_icon(current_user.email, 60), alt: 'User activity', class: 'avatar avatar s32'
|
||||
.username
|
||||
= current_user.username
|
||||
.logout-holder
|
||||
= link_to destroy_user_session_path, class: 'logout', method: :delete, title: 'Sign out', data: {toggle: 'tooltip', placement: 'top'} do
|
||||
= icon('sign-out')
|
||||
.content-wrapper
|
||||
.container-fluid
|
||||
.content
|
||||
|
|
|
@ -39,5 +39,8 @@
|
|||
%li
|
||||
= link_to profile_path, title: 'Profile settings', data: {toggle: 'tooltip', placement: 'bottom'} do
|
||||
= icon('cog fw')
|
||||
%li
|
||||
= link_to destroy_user_session_path, class: 'logout', method: :delete, title: 'Sign out', data: {toggle: 'tooltip', placement: 'bottom'} do
|
||||
= icon('sign-out')
|
||||
|
||||
= render 'shared/outdated_browser'
|
||||
|
|
Loading…
Reference in a new issue