# هل يمكنني إضافة زر تسجيل خروج آخر في مكان ما؟

**URL:** <https://meta.discourse.org/t/can-i-add-any-other-log-out-button-somewhere/41690>\
**Category:** Support\
**Created:** [29 مارس 2016، 1:58ص UTC](https://meta.discourse.org/t/can-i-add-any-other-log-out-button-somewhere/41690 "2016-03-29T01:58:31Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [29 مارس 2016، 3:03ص UTC](https://meta.discourse.org/t/can-i-add-any-other-log-out-button-somewhere/41690/8 "2016-03-29T03:03:36Z")

</div>

> [@sam](#):
>
> You could probably use a site customization to add to hamburger, but seems like a poor fit conceptually

It is a poor fit - but here is how it could be done - but I don’t like it - way to accessible for the average user to shoot themselves in the foot:

Added to `</head>` customisation:

```HTML
<script type='text/x-handlebars' data-template-name='/connectors/site-map-links-last/log-out'>
{{#if currentUser}}
<li>{{d-link action="logout" class="logout" icon="sign-out" label="user.log_out"}}</li>
{{/if}}
</script>
<script type="text/discourse-plugin" version="0.1">
var HamburgerMenuComponent = require('discourse/components/hamburger-menu').default;

HamburgerMenuComponent.reopen({
    actions: {
        logout: function() {
            this.container.lookup('controller:application').send('logout')
        }
    }
});
</script>

```

~~EDIT: Actually this doesn’t quite work clicking the logout, just reloads the page for me~~  
EDIT: Got it working with additional script block

---

_[View the full topic](https://meta.discourse.org/t/can-i-add-any-other-log-out-button-somewhere/41690)._
