replace SUPPORT_HTML with SUPPORT_TEMPLATE

master
Alice 5 years ago
parent 2d24b50aaf
commit e4cc47c720

@ -10,6 +10,6 @@ def some_settings(request):
'CLIENT_ON_VPN': is_vpn_gateway(client_ip), 'CLIENT_ON_VPN': is_vpn_gateway(client_ip),
'ROOT_URL': settings.ROOT_URL, 'ROOT_URL': settings.ROOT_URL,
'ADDITIONAL_HTML': settings.ADDITIONAL_HTML, 'ADDITIONAL_HTML': settings.ADDITIONAL_HTML,
'SUPPORT_HTML': settings.SUPPORT_HTML, 'SUPPORT_TEMPLATE': settings.SUPPORT_TEMPLATE,
'ADDITIONAL_HEADER_HTML': settings.ADDITIONAL_HEADER_HTML, 'ADDITIONAL_HEADER_HTML': settings.ADDITIONAL_HEADER_HTML,
} }

@ -175,8 +175,8 @@ ADDITIONAL_HEADER_HTML = ''
# HTML added before </body> # HTML added before </body>
ADDITIONAL_HTML = '' ADDITIONAL_HTML = ''
# Will replace the default contact us thing when not empty # Template to load for the live chat thing
SUPPORT_HTML = '' SUPPORT_TEMPLATE = 'livechat_default.html'
# Custom per cluster message displayed config page # Custom per cluster message displayed config page
# 'cluster_name': "No P2P" # 'cluster_name': "No P2P"

@ -98,15 +98,8 @@
{% block livechat_thing %} {% block livechat_thing %}
{% if not request.user.is_staff %} {% if not request.user.is_staff %}
{% if SUPPORT_HTML %} {% if SUPPORT_TEMPLATE %}
{{SUPPORT_HTML | safe}} {% include SUPPORT_TEMPLATE %}
{% else %}
<div class="livechat-thing">
<a href="/chat">
<span class="icon"></span>
{% blocktrans %}Any question? <b>Chat with us</b>{% endblocktrans %}
</a>
</div>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}

Loading…
Cancel
Save