From 570f7fc252092c6ba19606671d14adf2de44c414 Mon Sep 17 00:00:00 2001 From: John Martin Date: Tue, 19 Nov 2013 10:26:14 +0000 Subject: [PATCH] [#1301] Adds template blocks to resource listings --- .../package/snippets/resource_item.html | 16 +++++++++------- .../package/snippets/resources_list.html | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ckan/templates/package/snippets/resource_item.html b/ckan/templates/package/snippets/resource_item.html index c5b22521d64..98cda189ff6 100644 --- a/ckan/templates/package/snippets/resource_item.html +++ b/ckan/templates/package/snippets/resource_item.html @@ -9,13 +9,15 @@ {{ h.popular('views', res.tracking_summary.total, min=10) }} {% endblock %} -

- {% if res.description %} - {{ h.markdown_extract(res.description, extract_length=80) }} - {% else %} - {{ _('No description for this resource') }} - {% endif %} -

+ {% block resource_item_description %} +

+ {% if res.description %} + {{ h.markdown_extract(res.description, extract_length=80) }} + {% else %} + {{ _('No description for this resource') }} + {% endif %} +

+ {% endblock %} {% block resource_item_explore %} {% if not url_is_edit %}