From c9ac233911881bb39c8aef9b1efcb8ec32bf30b5 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 16 Aug 2022 11:10:28 +0000 Subject: [PATCH] urls: Move /team files to the corporate folder. --- corporate/views/portico.py | 2 +- templates/{zerver => corporate}/team.html | 0 tools/check-templates | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename templates/{zerver => corporate}/team.html (100%) diff --git a/corporate/views/portico.py b/corporate/views/portico.py index 2b0271a6c8..f3e5b729d8 100644 --- a/corporate/views/portico.py +++ b/corporate/views/portico.py @@ -85,7 +85,7 @@ def team_view(request: HttpRequest) -> HttpResponse: return TemplateResponse( request, - "zerver/team.html", + "corporate/team.html", context={ "page_params": { "contributors": data["contributors"], diff --git a/templates/zerver/team.html b/templates/corporate/team.html similarity index 100% rename from templates/zerver/team.html rename to templates/corporate/team.html diff --git a/tools/check-templates b/tools/check-templates index 66a532345b..68a0ec7e67 100755 --- a/tools/check-templates +++ b/tools/check-templates @@ -52,8 +52,8 @@ def check_html_templates(templates: Iterable[str], all_dups: bool, fix: bool) -> logging.basicConfig(format="%(levelname)s:%(message)s") templates = sorted(fn for fn in templates) # Use of lodash templates <%= %>. - if "templates/zerver/team.html" in templates: - templates.remove("templates/zerver/team.html") + if "templates/corporate/team.html" in templates: + templates.remove("templates/corporate/team.html") def check_for_duplicate_ids(templates: List[str]) -> Dict[str, List[str]]: template_id_dict = build_id_dict(templates)