mirror of https://github.com/zulip/zulip.git
urls: Move /hello files to the corporate folder.
This commit is contained in:
parent
07f0104714
commit
ef21f9107c
|
@ -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())
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue