Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
billing: Show message for users without access to page in a white box.
Aman Agrawalc2e01f06a31a
diff --git a/templates/corporate/billing.html b/templates/corporate/billing.htmlindex d48505281fa..3f35e7fec1b 100644--- a/templates/corporate/billing.html+++ b/templates/corporate/billing.html@@ -8,11 +8,11 @@{% block portico_content %}<div id="billing-page" class="register-account flex full-page"><div class="center-block new-style">+ {% if admin_access and has_active_plan %}<div class="pitch"><h1>Zulip Cloud billing for {{ org_name }}</h1></div><div class="alert alert-danger" id="error-message-box"></div>- {% if admin_access and has_active_plan %}<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" /><div class="white-box"><div id="billing-page-details">@@ -198,9 +198,16 @@{% else %}<!-- For sponsored or sponsorship pending organizations we redirect to /sponsorship page. --><!-- For organizations on free plan we redirect to /plans page. -->- <p>- You must be an organization owner or a billing administrator to view this page.- </p>+ <div class="billing-status-page">+ <div class="pitch">+ <h1>Zulip Cloud billing for {{ org_name }}</h1>+ </div>+ <div class="white-box">+ <p>+ You must be an organization owner or a billing administrator to view this page.+ </p>+ </div>+ </div>{% endif %}</div></div>diff --git a/web/styles/portico/billing.css b/web/styles/portico/billing.cssindex 11449af5634..7ecba30bf1a 100644--- a/web/styles/portico/billing.css+++ b/web/styles/portico/billing.css@@ -402,10 +402,16 @@ input[name="licenses"] {}}+#billing-page .billing-status-page .pitch {+ width: 100%;+}++.billing-status-page,.sponsorship-status-page .white-box {font-weight: 400;}+.billing-status-page p:last-child,.sponsorship-status-page p:last-child {margin-bottom: 0;}