FEATURE: site setting for show log out in header

This commit is contained in:
Sam 2015-09-01 07:44:21 +10:00
parent a10e9ed232
commit a13e7d10cf
4 changed files with 17 additions and 0 deletions

View File

@ -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}}

View File

@ -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;

View File

@ -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."

View File

@ -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'