urls: Move /hello files to the corporate folder.

This commit is contained in:
Aman Agrawal 2022-08-16 11:27:45 +00:00 committed by Tim Abbott
parent 07f0104714
commit ef21f9107c
4 changed files with 5 additions and 5 deletions

View File

@ -102,4 +102,4 @@ def landing_view(request: HttpRequest, template_name: str) -> HttpResponse:
@add_google_analytics @add_google_analytics
def hello_view(request: HttpRequest) -> HttpResponse: def hello_view(request: HttpRequest) -> HttpResponse:
return TemplateResponse(request, "zerver/hello.html", latest_info_context()) return TemplateResponse(request, "corporate/hello.html", latest_info_context())

View File

@ -620,7 +620,7 @@ html_rules: List["Rule"] = [
"description": "Don't directly load dependencies from CDNs. See docs/subsystems/html-css.md", "description": "Don't directly load dependencies from CDNs. See docs/subsystems/html-css.md",
"exclude": { "exclude": {
"templates/corporate/billing.html", "templates/corporate/billing.html",
"templates/zerver/hello.html", "templates/corporate/hello.html",
"templates/corporate/upgrade.html", "templates/corporate/upgrade.html",
"templates/corporate/event_status.html", "templates/corporate/event_status.html",
}, },

View File

@ -493,9 +493,9 @@ class HomeTest(ZulipTestCase):
user.tos_version = None user.tos_version = None
user.save() user.save()
with self.settings(FIRST_TIME_TERMS_OF_SERVICE_TEMPLATE="zerver/hello.html"), self.settings( with self.settings(
TERMS_OF_SERVICE_VERSION="99.99" FIRST_TIME_TERMS_OF_SERVICE_TEMPLATE="corporate/hello.html"
): ), self.settings(TERMS_OF_SERVICE_VERSION="99.99"):
result = self.client_post("/accounts/accept_terms/") result = self.client_post("/accounts/accept_terms/")
self.assertEqual(result.status_code, 200) self.assertEqual(result.status_code, 200)
self.assert_in_response("I agree to the", result) self.assert_in_response("I agree to the", result)