Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
remote-support: Add specific class for support section headers.
Lauryn Menard423af9916af6
diff --git a/corporate/tests/test_support_views.py b/corporate/tests/test_support_views.pyindex deac772227c..f0ad1f4705b 100644--- a/corporate/tests/test_support_views.py+++ b/corporate/tests/test_support_views.py@@ -243,11 +243,11 @@ class TestRemoteServerSupportEndpoint(ZulipTestCase):def check_legacy_plan_with_upgrade(result: "TestHttpResponse") -> None:self.assert_in_success_response([- "<h4>π Current plan information:</h4>",+ "π Current plan information:","<b>Plan name</b>: Free (legacy plan)<br />","<b>Status</b>: New plan scheduled<br />","<b>End date</b>: 01 February 2050<br />",- "<h4>β±οΈ Next plan information:</h4>",+ "β±οΈ Next plan information:","<b>Plan name</b>: Zulip Basic<br />","<b>Status</b>: Never started<br />","<b>Start date</b>: 01 February 2050<br />",@@ -262,7 +262,7 @@ class TestRemoteServerSupportEndpoint(ZulipTestCase):def check_legacy_plan_without_upgrade(result: "TestHttpResponse") -> None:self.assert_in_success_response([- "<h4>π Current plan information:</h4>",+ "π Current plan information:","<b>Plan name</b>: Free (legacy plan)<br />","<b>Status</b>: Active<br />","<b>End date</b>: 01 February 2050<br />",@@ -271,7 +271,7 @@ class TestRemoteServerSupportEndpoint(ZulipTestCase):)self.assert_not_in_success_response([- "<h4>β±οΈ Next plan information:</h4>",+ "β±οΈ Next plan information:",],result,)diff --git a/templates/corporate/support/current_plan_details.html b/templates/corporate/support/current_plan_details.htmlindex 9ae36f3d12a..9a3fc3aa1f5 100644--- a/templates/corporate/support/current_plan_details.html+++ b/templates/corporate/support/current_plan_details.html@@ -1,5 +1,5 @@<div class="current-plan-information">- <h4>π Current plan information:</h4>+ <p class="support-section-header">π Current plan information:</p>{% if plan_data.warning %}<div class="current-plan-data-missing">{{ plan_data.warning }}diff --git a/templates/corporate/support/next_plan_details.html b/templates/corporate/support/next_plan_details.htmlindex 9cc346c65e9..77d419f8def 100644--- a/templates/corporate/support/next_plan_details.html+++ b/templates/corporate/support/next_plan_details.html@@ -1,5 +1,5 @@<div class="next-plan-information">- <h4>β±οΈ Next plan information:</h4>+ <p class="support-section-header">β±οΈ Next plan information:</p><b>Plan name</b>: {{ plan_data.next_plan.name }}<br /><b>Status</b>: {{ plan_data.next_plan.get_plan_status_as_text() }}<br />{% if plan_data.next_plan.price_per_license %}diff --git a/templates/corporate/support/next_plan_forms_support.html b/templates/corporate/support/next_plan_forms_support.htmlindex f92412e862c..8c28b48cfdd 100644--- a/templates/corporate/support/next_plan_forms_support.html+++ b/templates/corporate/support/next_plan_forms_support.html@@ -1,4 +1,4 @@-<h4>β±οΈ Schedule fixed price plan:</h4>+<p class="support-section-header">β±οΈ Schedule fixed price plan:</p><form method="POST" class="remote-form"><b>Fixed price</b><br />{% if not is_current_plan_billable %}diff --git a/templates/corporate/support/remote_realm_details.html b/templates/corporate/support/remote_realm_details.htmlindex 9e8fe4ccc67..6e339222029 100644--- a/templates/corporate/support/remote_realm_details.html+++ b/templates/corporate/support/remote_realm_details.html@@ -3,19 +3,19 @@<span class="label">remote realm</span><h3>{{ remote_realm.name }}</h3>{% if remote_realm.realm_locally_deleted %}- <h4>Remote realm is locally deleted π</h4>+ <p class="support-section-header">Remote realm is locally deleted π</p>{% endif %}{% if remote_realm.registration_deactivated %}- <h4>Remote realm registration deactivated π</h4>+ <p class="support-section-header">Remote realm registration deactivated π</p>{% endif %}{% if remote_realm.realm_deactivated %}- <h4>Remote realm is deactivated on remote server π</h4>+ <p class="support-section-header">Remote realm is deactivated on remote server π</p>{% endif %}{% if remote_realm.plan_type == SPONSORED_PLAN_TYPE %}- <h4>On 100% sponsored Zulip Community plan π</h4>+ <p class="support-section-header">On 100% sponsored Zulip Community plan π</p>{% endif %}{% if support_data[remote_realm.id].sponsorship_data.default_discount %}- <h4>Has a discount πΈ</h4>+ <p class="support-section-header">Has a discount πΈ</p>{% endif %}<b>Remote realm host:</b> {{ remote_realm.host }}<br /><b>Date created</b>: {{ support_data[remote_realm.id].date_created.strftime('%d %B %Y') }}<br />diff --git a/templates/corporate/support/remote_server_support.html b/templates/corporate/support/remote_server_support.htmlindex 31c8faee052..b0f5e3f1929 100644--- a/templates/corporate/support/remote_server_support.html+++ b/templates/corporate/support/remote_server_support.html@@ -39,10 +39,10 @@<span class="label">remote server</span><h3>{{ remote_server.hostname }} {{ server_analytics_link(remote_server.id ) }}</h3>{% if remote_server.plan_type == SPONSORED_PLAN_TYPE %}- <h4>On 100% sponsored Zulip Community plan π</h4>+ <p class="support-section-header">On 100% sponsored Zulip Community plan π</p>{% endif %}{% if remote_servers_support_data[remote_server.id].sponsorship_data.default_discount %}- <h4>Has a discount πΈ</h4>+ <p class="support-section-header">Has a discount πΈ</p>{% endif %}<b>Contact email</b>: {{ remote_server.contact_email }}<a title="Copy email" class="copy-button" data-copytext="{{ remote_server.contact_email }}">diff --git a/templates/corporate/support/sponsorship_forms_support.html b/templates/corporate/support/sponsorship_forms_support.htmlindex 0fec76ef979..36895d3faa8 100644--- a/templates/corporate/support/sponsorship_forms_support.html+++ b/templates/corporate/support/sponsorship_forms_support.html@@ -64,7 +64,7 @@{% if sponsorship_data.sponsorship_pending %}<div class="">- <h4>Sponsorship request information:</h4>+ <p class="support-section-header">Sponsorship request information:</p>{% if sponsorship_data.latest_sponsorship_request %}<ul><li><b>Organization type</b>: {{ sponsorship_data.latest_sponsorship_request.org_type }}</li>diff --git a/web/styles/portico/activity.css b/web/styles/portico/activity.cssindex 1249fa9b915..d6804b1a3ca 100644--- a/web/styles/portico/activity.css+++ b/web/styles/portico/activity.css@@ -269,7 +269,14 @@ tr.admin td:first-child {.realm-support-information,.remote-server-information,.remote-realm-information {- padding-bottom: 15px;+ margin-bottom: 10px;+}++.support-section-header {+ font-size: 1.2em;+ font-weight: bold;+ line-height: 20px;+ margin: 0 0 8px;}.support-realm-icon {