mirror of https://github.com/zulip/zulip.git
templates: Remove logout form shared template.
It's sufficiently tiny that the shared code benefits don't justify the cost, given that we plan to move index.html to a different templating system soon.
This commit is contained in:
parent
19fb6114d7
commit
75dbd2c80d
|
@ -177,7 +177,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include "zerver/app/invite_user.html" %}
|
{% include "zerver/app/invite_user.html" %}
|
||||||
{% include "zerver/app/logout.html" %}
|
<div class="hidden">
|
||||||
|
<form id="logout_form" action="/accounts/logout/" method="POST">{{ csrf_input }}
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
{% include "zerver/app/deprecation_notice.html" %}
|
{% include "zerver/app/deprecation_notice.html" %}
|
||||||
{% include "zerver/app/about-zulip.html" %}
|
{% include "zerver/app/about-zulip.html" %}
|
||||||
<div id="user-profile-modal-holder"></div>
|
<div id="user-profile-modal-holder"></div>
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
<div class="hidden">
|
|
||||||
<form id="logout_form" action="/accounts/logout/" method="POST">{{ csrf_input }}
|
|
||||||
</form>
|
|
||||||
</div>
|
|
|
@ -11,7 +11,10 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="logout">
|
<li class="logout">
|
||||||
{% include 'zerver/app/logout.html' %}
|
<div class="hidden">
|
||||||
|
<form id="logout_form" action="/accounts/logout/" method="POST">{{ csrf_input }}
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
<a href="#logout">
|
<a href="#logout">
|
||||||
<i class="fa fa-sign-out"></i>
|
<i class="fa fa-sign-out"></i>
|
||||||
Log out
|
Log out
|
||||||
|
|
|
@ -62,6 +62,7 @@ def check_html_templates(templates: Iterable[str], all_dups: bool, fix: bool) ->
|
||||||
"top_navbar",
|
"top_navbar",
|
||||||
"id_email",
|
"id_email",
|
||||||
"id_terms",
|
"id_terms",
|
||||||
|
"logout_form",
|
||||||
"send_confirm",
|
"send_confirm",
|
||||||
"register",
|
"register",
|
||||||
"footer",
|
"footer",
|
||||||
|
|
Loading…
Reference in New Issue