Add balance in menu
This commit is contained in:
parent
915d051e8f
commit
38facba605
2 changed files with 6 additions and 2 deletions
|
@ -14,6 +14,9 @@ $color: #777;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
color: $color;
|
color: $color;
|
||||||
|
font-size: 1.875rem;
|
||||||
|
line-height: 1.4;
|
||||||
|
font-weight: 300;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -36,7 +39,7 @@ $color: #777;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
.menu-item {
|
.menu-item {
|
||||||
&:hover {
|
&.menu-item-signout:hover {
|
||||||
background-color: red;
|
background-color: red;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,4 +18,5 @@
|
||||||
Zeus Notifications
|
Zeus Notifications
|
||||||
%span.badge= User.zeus.notifications.size
|
%span.badge= User.zeus.notifications.size
|
||||||
.menu-list.menu-right
|
.menu-list.menu-right
|
||||||
= link_to 'Sign out', sign_out_path, method: :delete, class: 'menu-item'
|
%span.menu-item= euro_from_cents current_user.balance
|
||||||
|
= link_to 'Sign out', sign_out_path, method: :delete, class: 'menu-item menu-item-signout'
|
||||||
|
|
Loading…
Reference in a new issue