{% if chat_url %}
    {% if iframe %}
      <iframe src="{{ chat_url|safe }}" frameborder="0" marginheight="0"
              marginwidth="0" width="100%" height="450"></iframe>
    {% else %}
      <script type="text/javascript" charset="UTF-8" src="{{ chat_url|safe }}"></script>
    {% endif %}
{% endif %}