Commits

Eduard Iskandarov  committed 09c5abf

templatetags: add last reply widget tags.

  • Participants
  • Parent commits 03c333c

Comments (0)

Files changed (1)

File django_cackle/templatetags/cackle_tags.py

         'cackle_text_size': getattr(settings, 'CACKLE_TEXT_SIZE', None),
         'cackle_sso_auth': sso_auth,
     }
+
+
+@register.inclusion_tag('cackle/last_reply_widget.html')
+def cackle_last_reply_widget():
+    return {
+        'cackle_site': settings.CACKLE_SITE,
+        'cackle_jquery_off': getattr(settings, 'CACKLE_JQUERY_OFF', False),
+        'cackle_size': getattr(settings, 'CACKLE_SIZE', None),
+        'cackle_avatar_size': getattr(settings, 'CACKLE_AVATAR_SIZE', None),
+        'cackle_text_size': getattr(settings, 'CACKLE_TEXT_SIZE', None),
+    }