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:
Tim Abbott 2021-06-10 13:12:23 -07:00
parent 19fb6114d7
commit 75dbd2c80d
4 changed files with 9 additions and 6 deletions

View File

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

View File

@ -1,4 +0,0 @@
<div class="hidden">
<form id="logout_form" action="/accounts/logout/" method="POST">{{ csrf_input }}
</form>
</div>

View File

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

View File

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