From 1c50f38b8f977ba811211f61d66d0e5fde153f2a Mon Sep 17 00:00:00 2001 From: Gabriel von Heijne Date: Thu, 28 Aug 2014 22:18:00 +0200 Subject: [PATCH] [#630] Add piwik tracking code to parter sites widgets --- akvo/templates/partner_sites/widgets/base.html | 3 +++ akvo/templates/partner_sites/widgets/projects_map.html | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/akvo/templates/partner_sites/widgets/base.html b/akvo/templates/partner_sites/widgets/base.html index 439992aa18..c35b18553f 100644 --- a/akvo/templates/partner_sites/widgets/base.html +++ b/akvo/templates/partner_sites/widgets/base.html @@ -1,3 +1,4 @@ +{% load i18n rsr_tags humanize piwik_tags %} @@ -6,6 +7,8 @@ {% block style %}{% endblock style %} + {# Piwik #} + {% tracking_code %} {% block body %}{% endblock body %} diff --git a/akvo/templates/partner_sites/widgets/projects_map.html b/akvo/templates/partner_sites/widgets/projects_map.html index f7bcd35ecd..21bcf21a93 100644 --- a/akvo/templates/partner_sites/widgets/projects_map.html +++ b/akvo/templates/partner_sites/widgets/projects_map.html @@ -1,4 +1,4 @@ -{% load cache maps humanize i18n rsr_tags %} +{% load cache maps humanize i18n rsr_tags piwik_tags %} {% load static %} {% get_static_prefix as STATIC_URL %} @@ -28,6 +28,9 @@ #footer a img { border:none;} + {# Piwik #} + {% tracking_code %} + {% projects_map projects width height|add:-30 state %}