Only document email integration if it is enabled.

(imported from commit d1f13ff30c56f7a2156e8c00621b6b955302ccf0)
This commit is contained in:
Tim Abbott 2013-12-04 16:35:38 -05:00
parent 97dd4b0cb3
commit feaf6843de
2 changed files with 5 additions and 1 deletions

View File

@ -59,12 +59,14 @@
<span class="integration-label">Desk.com</span>
</a>
</div>
{% if email_integration_enabled %}
<div class="integration-lozenge integration-email">
<a class="integration-link integration-email" href="#email">
<img class="integration-logo" src="/static/images/integrations/logos/email.png">
<span class="integration-label">Email</span>
</a>
</div>
{% endif %}
<div class="integration-lozenge integration-freshdesk">
<a class="integration-link integration-freshdesk" href="#freshdesk">
<img class="integration-logo" src="/static/images/integrations/logos/freshdesk.png">
@ -491,7 +493,7 @@
</div>
{% if email_integration_enabled %}
<div id="email" class="integration-instructions">
@ -522,6 +524,7 @@
<p>Please note that it may take up to one minute for the message to show up
in Zulip.</p>
</div>
{% endif %}
<div id="freshdesk" class="integration-instructions">

View File

@ -19,6 +19,7 @@ def add_settings(request):
'external_api_uri': settings.EXTERNAL_API_URI,
'external_uri_scheme': settings.EXTERNAL_URI_SCHEME,
'api_site_required': settings.EXTERNAL_API_PATH != "api.zulip.com",
'email_integration_enabled': settings.EMAIL_GATEWAY_BOT != "",
}
def add_metrics(request):