mirror of https://github.com/zulip/zulip.git
logout: Move logout form from the ".app" div to the body.
The hidden logout form facilitates logging out from the app by providing a form with the CSRF token required for the csrf_token protection in Jinja2. This commit moves this form from the ".app" div to the body, where it is more appropriately placed in the DOM. This is a prep commit for #27550.
This commit is contained in:
parent
929d34ccd7
commit
db6246fcc7
|
@ -279,9 +279,10 @@
|
||||||
<div class="column-right" id="right-sidebar-container">
|
<div class="column-right" id="right-sidebar-container">
|
||||||
</div><!--/right sidebar-->
|
</div><!--/right sidebar-->
|
||||||
</div><!--/row-->
|
</div><!--/row-->
|
||||||
<div class="hidden">
|
</div>
|
||||||
<form id="logout_form" action="/accounts/logout/" method="POST">{{ csrf_input }}
|
|
||||||
</form>
|
<div class="hidden">
|
||||||
</div>
|
<form id="logout_form" action="/accounts/logout/" method="POST">{{ csrf_input }}
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue