From cd33d47d5e148697314ee90db3a0e27e87277374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20=C3=81lvarez?= Date: Fri, 29 Apr 2016 17:56:39 -0300 Subject: [PATCH] refctoring disqus and adding it to the flatpages default --- votai_general_theme/templates/disqus.html | 19 ++++++++++++++++ .../templates/elections/candidate_detail.html | 22 ++----------------- .../templates/flatpages/default.html | 1 + 3 files changed, 22 insertions(+), 20 deletions(-) create mode 100644 votai_general_theme/templates/disqus.html diff --git a/votai_general_theme/templates/disqus.html b/votai_general_theme/templates/disqus.html new file mode 100644 index 00000000..9bec129d --- /dev/null +++ b/votai_general_theme/templates/disqus.html @@ -0,0 +1,19 @@ +{% load votainteligente_extras %} +{% if 'enabled'|disqus and 'shortname'|disqus %} +
+
+ + + comments powered by Disqus +
+{% endif %} diff --git a/votai_general_theme/templates/elections/candidate_detail.html b/votai_general_theme/templates/elections/candidate_detail.html index fec1a9cf..678abc41 100644 --- a/votai_general_theme/templates/elections/candidate_detail.html +++ b/votai_general_theme/templates/elections/candidate_detail.html @@ -145,25 +145,7 @@

{% trans "Cuestionario" %} {% if not candidate.has_answered %}{% no_ha_respo {% endfor %} {% endif %} - - {% if 'enabled'|disqus and 'shortname'|disqus %} -
-
- - - comments powered by Disqus -
- {% endif %} + {% include 'disqus.html' %}