diff --git a/apps/addons/helpers.py b/apps/addons/helpers.py index c2be9ec0ba..fa6fa1bcb9 100644 --- a/apps/addons/helpers.py +++ b/apps/addons/helpers.py @@ -82,3 +82,11 @@ def contribution(addon, text='', src='', show_install=False, show_help=True): 'has_suggested': bool(addon.suggested_amount), 'pledge': pledge, })) + + +@register.inclusion_tag('addons/listing_items.html') +@jinja2.contextfunction +def addon_listing_items(context, addons): + c = dict(context.items()) + c['addons'] = addons + return c diff --git a/apps/addons/templates/addons/home.html b/apps/addons/templates/addons/home.html index 5f3a5f0acf..3911e52191 100644 --- a/apps/addons/templates/addons/home.html +++ b/apps/addons/templates/addons/home.html @@ -62,43 +62,7 @@
- {{ addon.description|truncate(250) }} -- -