summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-09-28 23:43:59 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-09-28 23:43:59 +0200
commite6800dee22a9ebfe426662746d239a0c484ac520 (patch)
treec115e491c8adc05027d9eabbebf95a7586f6fffe
parentf13cc64d7fc133055d9c77e728de1f3df9d7ba07 (diff)
downloadChimère-e6800dee22a9ebfe426662746d239a0c484ac520.tar.bz2
Chimère-e6800dee22a9ebfe426662746d239a0c484ac520.zip
Add RSS option for share bar
-rw-r--r--chimere/templatetags/chimere_tags.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/chimere/templatetags/chimere_tags.py b/chimere/templatetags/chimere_tags.py
index a89b721..61a1ab9 100644
--- a/chimere/templatetags/chimere_tags.py
+++ b/chimere/templatetags/chimere_tags.py
@@ -318,9 +318,10 @@ def get_tinyfied_url(marker, area_name=''):
@register.inclusion_tag('chimere/blocks/share_bar.html',
takes_context=True)
-def share_bar(context, name='', email_only=False):
+def share_bar(context, name='', email_only=False, rss=True):
context['STATIC_URL'] = settings.STATIC_URL
context['name'] = name
+ context['rss'] = rss
context['email_only'] = email_only
context['share_networks'] = [(defaultfilters.slugify(name), url, icon)
for name, url, icon in settings.CHIMERE_SHARE_NETWORKS]