urls: Move /team files to the corporate folder.

This commit is contained in:
Aman Agrawal 2022-08-16 11:10:28 +00:00 committed by Tim Abbott
parent 349bac4751
commit c9ac233911
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ def team_view(request: HttpRequest) -> HttpResponse:
return TemplateResponse( return TemplateResponse(
request, request,
"zerver/team.html", "corporate/team.html",
context={ context={
"page_params": { "page_params": {
"contributors": data["contributors"], "contributors": data["contributors"],

View File

@ -52,8 +52,8 @@ def check_html_templates(templates: Iterable[str], all_dups: bool, fix: bool) ->
logging.basicConfig(format="%(levelname)s:%(message)s") logging.basicConfig(format="%(levelname)s:%(message)s")
templates = sorted(fn for fn in templates) templates = sorted(fn for fn in templates)
# Use of lodash templates <%= %>. # Use of lodash templates <%= %>.
if "templates/zerver/team.html" in templates: if "templates/corporate/team.html" in templates:
templates.remove("templates/zerver/team.html") templates.remove("templates/corporate/team.html")
def check_for_duplicate_ids(templates: List[str]) -> Dict[str, List[str]]: def check_for_duplicate_ids(templates: List[str]) -> Dict[str, List[str]]:
template_id_dict = build_id_dict(templates) template_id_dict = build_id_dict(templates)