mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add a user_email
option to the nav "Account" dropdown.
This commit is contained in:
parent
a03ac8fe72
commit
cf94429e05
3 changed files with 13 additions and 3 deletions
|
@ -35,6 +35,9 @@ nav.navbar.navbar-default
|
|||
each child in item.dropdown
|
||||
if child.divider
|
||||
li.divider
|
||||
else if child.user_email
|
||||
li
|
||||
div.subdued #{getUserEmail()}
|
||||
else
|
||||
li
|
||||
if child.url
|
||||
|
|
|
@ -347,6 +347,10 @@ module.exports = settings =
|
|||
text: "Account"
|
||||
only_when_logged_in: true
|
||||
dropdown: [{
|
||||
user_email: true
|
||||
},{
|
||||
divider: true
|
||||
}, {
|
||||
text: "Account Settings"
|
||||
url: "/user/settings"
|
||||
}, {
|
||||
|
|
|
@ -58,8 +58,8 @@
|
|||
.nav-divider(@dropdown-divider-bg);
|
||||
}
|
||||
|
||||
// Links within the dropdown menu
|
||||
> li > a {
|
||||
// Links and other items within the dropdown menu
|
||||
> li > a,div {
|
||||
display: block;
|
||||
padding: 3px 20px;
|
||||
clear: both;
|
||||
|
@ -67,8 +67,11 @@
|
|||
line-height: @line-height-base;
|
||||
color: @dropdown-link-color;
|
||||
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
||||
&.subdued {
|
||||
color: #7a7a7a
|
||||
}
|
||||
.subdued {
|
||||
color: #7a7a7a
|
||||
color: #7a7a7a
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue