diff --git a/corporate/views.py b/corporate/views.py index ee12d0d341..4363523fcd 100644 --- a/corporate/views.py +++ b/corporate/views.py @@ -82,7 +82,7 @@ def initial_upgrade(request: HttpRequest) -> HttpResponse: 'cloud_annual_price': 80, 'cloud_annual_price_per_month': 6.67, } # type: Dict[str, Any] - response = render(request, 'zilencer/upgrade.html', context=context) + response = render(request, 'corporate/upgrade.html', context=context) response['error_description'] = error_description return response @@ -102,7 +102,7 @@ def billing_home(request: HttpRequest) -> HttpResponse: if not user.is_realm_admin and not user.is_billing_admin: context = {'admin_access': False} # type: Dict[str, Any] - return render(request, 'zilencer/billing.html', context=context) + return render(request, 'corporate/billing.html', context=context) context = {'admin_access': True} stripe_customer = stripe_get_customer(customer.stripe_customer_id) @@ -147,7 +147,7 @@ def billing_home(request: HttpRequest) -> HttpResponse: 'stripe_email': stripe_customer.email, }) - return render(request, 'zilencer/billing.html', context=context) + return render(request, 'corporate/billing.html', context=context) def downgrade(request: HttpRequest, user: UserProfile) -> HttpResponse: if not user.is_realm_admin and not user.is_billing_admin: diff --git a/templates/zilencer/billing.html b/templates/corporate/billing.html similarity index 100% rename from templates/zilencer/billing.html rename to templates/corporate/billing.html diff --git a/templates/zilencer/upgrade.html b/templates/corporate/upgrade.html similarity index 100% rename from templates/zilencer/upgrade.html rename to templates/corporate/upgrade.html diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index 38624482e9..db373f0d01 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -626,8 +626,8 @@ def build_custom_checkers(by_lang): 'bad_lines': ['']}, {'pattern': 'script src="http', 'description': "Don't directly load dependencies from CDNs. See docs/subsystems/front-end-build-process.md", - 'exclude': set(["templates/zilencer/billing.html", "templates/zerver/hello.html", - "templates/zilencer/upgrade.html"]), + 'exclude': set(["templates/corporate/billing.html", "templates/zerver/hello.html", + "templates/corporate/upgrade.html"]), 'good_lines': ["{{ render_bundle('landing-page') }}"], 'bad_lines': ['']}, {'pattern': "title='[^{]", @@ -701,7 +701,7 @@ def build_custom_checkers(by_lang): 'templates/zerver/app/home.html', 'templates/zerver/features.html', 'templates/zerver/portico-header.html', - 'templates/zilencer/billing.html', + 'templates/corporate/billing.html', # Miscellaneous violations to be cleaned up 'static/templates/user_info_popover_title.handlebars',