FEATURE: site setting for show log out in header
This commit is contained in:
parent
a10e9ed232
commit
a13e7d10cf
|
@ -37,6 +37,10 @@
|
|||
</ul>
|
||||
{{/if}}
|
||||
{{/conditional-loading-spinner}}
|
||||
{{#if siteSettings.show_logout_in_header}}
|
||||
<hr style="margin:3px 0" />
|
||||
<a href {{action 'logout'}} class='logout'>{{fa-icon "sign-out"}} {{i18n 'user.log_out'}}</a>
|
||||
{{/if}}
|
||||
{{plugin-outlet "user-menu-bottom"}}
|
||||
</div>
|
||||
{{/menu-panel}}
|
||||
|
|
|
@ -224,6 +224,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
.notifications .logout {
|
||||
padding: 0.25em;
|
||||
&:hover {
|
||||
background-color: dark-light-diff($highlight, $secondary, 50%, -55%);
|
||||
}
|
||||
}
|
||||
|
||||
div.menu-links-header {
|
||||
width: 100%;
|
||||
display: table;
|
||||
|
|
|
@ -1177,6 +1177,8 @@ en:
|
|||
|
||||
delete_drafts_older_than_n_days: Delete drafts older than (n) days.
|
||||
|
||||
show_logout_in_header: "Show log out in user dropdown in header"
|
||||
|
||||
vacuum_db_days: "Run VACUUM FULL ANALYZE to reclaim DB space after migrations (set to 0 to disable)"
|
||||
|
||||
prevent_anons_from_downloading_files: "Prevent anonymous users from downloading attachments. WARNING: this will prevent any non-image site assets posted as attachments from working."
|
||||
|
|
|
@ -958,6 +958,10 @@ uncategorized:
|
|||
default: -1
|
||||
hidden: true
|
||||
|
||||
show_logout_in_header:
|
||||
default: false
|
||||
client: true
|
||||
|
||||
user_preferences:
|
||||
default_email_digest_frequency:
|
||||
enum: 'DigestEmailSiteSetting'
|
||||
|
|
Loading…
Reference in New Issue