Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

support: Add current plan information for remote servers.

Lauryn Menard9f8fe7989a21
diff --git a/templates/analytics/remote_server_support.html b/templates/analytics/remote_server_support.html
index 1814d7c9d0b..3ce1aeb7258 100644
--- a/templates/analytics/remote_server_support.html
+++ b/templates/analytics/remote_server_support.html
@@ -88,6 +88,26 @@
{% endif %}
</form>
{% endif %}
+
+ {% if plan_data[remote_server.id].current_plan %}
+ <div class="remote-server-information">
+ <h4>📅 Current plan information:</h4>
+ <b>Plan name</b>: {{ plan_data[remote_server.id].current_plan.name }}<br />
+ <b>Status</b>: {{plan_data[remote_server.id].current_plan.get_plan_status_as_text()}}<br />
+ {% if plan_data[remote_server.id].current_plan.tier != 101 %}
+ <b>Billing schedule</b>: {% if plan_data[remote_server.id].current_plan.billing_schedule == plan_data[remote_server.id].current_plan.BILLING_SCHEDULE_ANNUAL %}Annual{% else %}Monthly{% endif %}<br />
+ <b>Licenses</b>: {{ plan_data[remote_server.id].licenses_used }}/{{ plan_data[remote_server.id].licenses }} ({% if plan_data[remote_server.id].current_plan.automanage_licenses %}Automatic{% else %}Manual{% endif %})<br />
+ {% if plan_data[remote_server.id].current_plan.price_per_license %}
+ <b>Price per license</b>: ${{ plan_data[remote_server.id].current_plan.price_per_license/100 }}<br />
+ {% elif plan_data[remote_server.id].current_plan.fixed_price %}
+ <b>Fixed price</b>: ${{ plan_data[remote_server.id].current_plan.fixed_price/100 }}<br />
+ {% endif %}
+ <b>Next invoice date</b>: {{ plan_data[remote_server.id].current_plan.next_invoice_date.strftime('%d %B %Y') }}<br />
+ {% else %}
+ <b>End date</b>: {{ plan_data[remote_server.id].current_plan.end_date.strftime('%d %B %Y') }}<br />
+ {% endif %}
+ </div>
+ {% endif %}
</div>
{% endfor %}
</div>
diff --git a/web/styles/portico/activity.css b/web/styles/portico/activity.css
index fa0bedf8e2d..e90eebb11b5 100644
--- a/web/styles/portico/activity.css
+++ b/web/styles/portico/activity.css
@@ -96,6 +96,7 @@ tr.admin td:first-child {
padding-top: 14px;
border-radius: 7px;
box-shadow: 0 10px 7px -6px hsl(0deg 2% 45%);
+ margin-bottom: 10px;
& select {
height: 30px;