From ee123a455b8153bfd7612c425bbed020bc62bc3e Mon Sep 17 00:00:00 2001 From: Alice Date: Tue, 22 Oct 2019 23:03:54 +0200 Subject: [PATCH] the same but less broken --- templates/layout.html | 2 +- templates/livechat_default.html | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 templates/livechat_default.html diff --git a/templates/layout.html b/templates/layout.html index 7e0065c..e7607a9 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -99,7 +99,7 @@ {% block livechat_thing %} {% if not request.user.is_staff %} {% if SUPPORT_TEMPLATE %} - {% include SUPPORT_TEMPLATE %} + {% include SUPPORT_TEMPLATE with request=request %} {% endif %} {% endif %} {% endblock %} diff --git a/templates/livechat_default.html b/templates/livechat_default.html new file mode 100644 index 0000000..008bae4 --- /dev/null +++ b/templates/livechat_default.html @@ -0,0 +1,7 @@ +{% load i18n %} +
+ + + {% blocktrans %}Any question? Chat with us{% endblocktrans %} + +
\ No newline at end of file