From: Radek Czajka Date: Fri, 8 Feb 2019 10:28:45 +0000 (+0100) Subject: Add HotJar on few pages. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/6ed1d78c6ca14fd002c7a00867d1964e0c4ea4a8?ds=inline Add HotJar on few pages. --- diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index 865aca2bb..ecae89e82 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -12,6 +12,14 @@ {% block bodyid %}book-detail{% endblock %} +{% block extrahead %} +{{ block.super }} +{% if request.path == '/katalog/lektura/pan-tadeusz/' %} +{% include "hotjar.html" %} +{% endif %} +{% endblock %} + + {% block body %} {% include 'catalogue/book_wide.html' %} diff --git a/src/catalogue/templates/catalogue/tagged_object_list.html b/src/catalogue/templates/catalogue/tagged_object_list.html index f4ba6991c..285af0ac3 100644 --- a/src/catalogue/templates/catalogue/tagged_object_list.html +++ b/src/catalogue/templates/catalogue/tagged_object_list.html @@ -5,6 +5,15 @@ {% block titleextra %}{% if tags %}{% title_from_tags tags %}{% elif list_type == 'gallery' %}{% trans "Gallery" %}{% elif list_type == 'audiobooks' %}{% trans "Audiobooks" %}{% else %}{% trans "Literature" %}{% endif %}{% endblock %} + +{% block extrahead %} +{{ block.super }} +{% if request.path == '/katalog/lektury/' or request.path == '/katalog/audiobooki/' %} +{% include "hotjar.html" %} +{% endif %} +{% endblock %} + + {% block bodyid %}tagged-object-list{% endblock %} {% block body %} diff --git a/src/wolnelektury/templates/hotjar.html b/src/wolnelektury/templates/hotjar.html new file mode 100644 index 000000000..03d8e37ab --- /dev/null +++ b/src/wolnelektury/templates/hotjar.html @@ -0,0 +1,11 @@ + + diff --git a/src/wolnelektury/templates/main_page.html b/src/wolnelektury/templates/main_page.html index 7912c2421..4a627e6c3 100755 --- a/src/wolnelektury/templates/main_page.html +++ b/src/wolnelektury/templates/main_page.html @@ -10,6 +10,11 @@ {% block title %}{% trans "Wolne Lektury internet library" %}{% endblock %} {% block ogtitle %}{% trans "Wolne Lektury internet library" %}{% endblock %} +{% block extrahead %} +{{ block.super }} +{% include "hotjar.html" %} +{% endblock %} + {% block body %} {% spaceless %} {% if cite %}