custom profile fields: Extract a separate various for whether enabled.

This will make it possible to do this on a per-organization basis.
This commit is contained in:
Tim Abbott 2018-06-07 11:33:58 -07:00
parent 9955580251
commit 93b5e0df61
2 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,7 @@
<i class="icon icon-vector-font"></i>
<div class="text">{{ _('Filter settings') }}</div>
</li>
{% if development_environment %}
{% if custom_profile_fields_enabled %}
<li tabindex="0" data-section="profile-field-settings">
<i class="icon icon-vector-user"></i>
<div class="text">{{ _('Custom profile fields') }}</div>

View File

@ -107,6 +107,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:
'privacy_policy': settings.PRIVACY_POLICY,
'login_url': settings.HOME_NOT_LOGGED_IN,
'only_sso': settings.ONLY_SSO,
'custom_profile_fields_enabled': settings.DEVELOPMENT,
'external_host': settings.EXTERNAL_HOST,
'external_uri_scheme': settings.EXTERNAL_URI_SCHEME,
'realm_invite_required': realm_invite_required,