From 75dbd2c80d480064e96d695a108d77b37410f8c7 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 10 Jun 2021 13:12:23 -0700 Subject: [PATCH] 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. --- templates/zerver/app/index.html | 5 ++++- templates/zerver/app/logout.html | 4 ---- templates/zerver/portico-header-dropdown.html | 5 ++++- tools/check-templates | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 templates/zerver/app/logout.html diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.html index c18fea81ba..eeec49ed5e 100644 --- a/templates/zerver/app/index.html +++ b/templates/zerver/app/index.html @@ -177,7 +177,10 @@ {% include "zerver/app/invite_user.html" %} - {% include "zerver/app/logout.html" %} + {% include "zerver/app/deprecation_notice.html" %} {% include "zerver/app/about-zulip.html" %}
diff --git a/templates/zerver/app/logout.html b/templates/zerver/app/logout.html deleted file mode 100644 index 2490f22975..0000000000 --- a/templates/zerver/app/logout.html +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/templates/zerver/portico-header-dropdown.html b/templates/zerver/portico-header-dropdown.html index ed9bb9a61a..0010d7be85 100644 --- a/templates/zerver/portico-header-dropdown.html +++ b/templates/zerver/portico-header-dropdown.html @@ -11,7 +11,10 @@
  • - {% include 'zerver/app/logout.html' %} + Log out diff --git a/tools/check-templates b/tools/check-templates index 40e85ed953..00afba928b 100755 --- a/tools/check-templates +++ b/tools/check-templates @@ -62,6 +62,7 @@ def check_html_templates(templates: Iterable[str], all_dups: bool, fix: bool) -> "top_navbar", "id_email", "id_terms", + "logout_form", "send_confirm", "register", "footer",