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.

portico: Disable self-hosted tab for logged-in cloud users.

Karl Stolley857630707a27
diff --git a/templates/corporate/pricing_model.html b/templates/corporate/pricing_model.html
index e10083d45da..2ee36b0a205 100644
--- a/templates/corporate/pricing_model.html
+++ b/templates/corporate/pricing_model.html
@@ -149,12 +149,21 @@
</div>
</div>
+ {% if user_is_authenticated and not is_self_hosted_realm %}
+ <div class="self-hosted-plan-title inactive-pricing-tab">
+ <h2>Self-hosted</h2>
+ <p>
+ <a href="https://zulip.com/plans/#self-hosted">View self-hosted plans and pricing</a>.
+ </p>
+ </div>
+ {% else %}
<div id="self-hosted" class="self-hosted-plan-title pricing-tab">
<h2>Self-hosted</h2>
<p>
Retain full control over your data.<br />100% open-source software.
</p>
</div>
+ {% endif %}
<div class="pricing-pane-scroll-container self-hosted-scroll">
<div class="self-hosted-plan-pricing pricing-pane">