mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 08:39:03 +02:00
Add a user_email option to the nav "Account" dropdown.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user