Commits

Eduard Iskandarov committed 3c3af6a

templatetags: add reply count widget tag.

Comments (0)

Files changed (1)

django_cackle/templatetags/cackle_tags.py

         'cackle_avatar_size': getattr(settings, 'CACKLE_AVATAR_SIZE', None),
         'cackle_text_size': getattr(settings, 'CACKLE_TEXT_SIZE', None),
     }
+
+
+@register.inclusion_tag('cackle/reply_count_widget.html')
+def cackle_reply_count_widget():
+    return {
+        'cackle_site': settings.CACKLE_SITE,
+        'cackle_jquery_off': getattr(settings, 'CACKLE_JQUERY_OFF', False),
+    }