Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

urls: Move /hello files to the corporate folder.

Aman Agrawalef21f9107c7b
diff --git a/corporate/views/portico.py b/corporate/views/portico.py
index f3e5b729d8f..9814294578c 100644
--- a/corporate/views/portico.py
+++ b/corporate/views/portico.py
@@ -102,4 +102,4 @@ def landing_view(request: HttpRequest, template_name: str) -> HttpResponse:
@add_google_analytics
def hello_view(request: HttpRequest) -> HttpResponse:
- return TemplateResponse(request, "zerver/hello.html", latest_info_context())
+ return TemplateResponse(request, "corporate/hello.html", latest_info_context())
diff --git a/templates/zerver/hello.html b/templates/corporate/hello.html
similarity index 100%
rename from templates/zerver/hello.html
rename to templates/corporate/hello.html
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py
index 2b4445c44b4..278274bacdb 100644
--- a/tools/linter_lib/custom_check.py
+++ b/tools/linter_lib/custom_check.py
@@ -620,7 +620,7 @@ html_rules: List["Rule"] = [
"description": "Don't directly load dependencies from CDNs. See docs/subsystems/html-css.md",
"exclude": {
"templates/corporate/billing.html",
- "templates/zerver/hello.html",
+ "templates/corporate/hello.html",
"templates/corporate/upgrade.html",
"templates/corporate/event_status.html",
},
diff --git a/zerver/tests/test_home.py b/zerver/tests/test_home.py
index f47a7553e21..7fe6b6580a4 100644
--- a/zerver/tests/test_home.py
+++ b/zerver/tests/test_home.py
@@ -493,9 +493,9 @@ class HomeTest(ZulipTestCase):
user.tos_version = None
user.save()
- with self.settings(FIRST_TIME_TERMS_OF_SERVICE_TEMPLATE="zerver/hello.html"), self.settings(
- TERMS_OF_SERVICE_VERSION="99.99"
- ):
+ with self.settings(
+ FIRST_TIME_TERMS_OF_SERVICE_TEMPLATE="corporate/hello.html"
+ ), self.settings(TERMS_OF_SERVICE_VERSION="99.99"):
result = self.client_post("/accounts/accept_terms/")
self.assertEqual(result.status_code, 200)
self.assert_in_response("I agree to the", result)