From 71aedf3fd449a6bcc114fa69463640913b306e4e Mon Sep 17 00:00:00 2001 From: John Martin Date: Thu, 5 Sep 2013 15:36:00 +0100 Subject: [PATCH] Makes ede45bd work in both CKAN 2.0 and 2.1 --- ckanext/harvest/templates_new/source/search.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ckanext/harvest/templates_new/source/search.html b/ckanext/harvest/templates_new/source/search.html index 42ba964..f6d62c6 100644 --- a/ckanext/harvest/templates_new/source/search.html +++ b/ckanext/harvest/templates_new/source/search.html @@ -2,13 +2,23 @@ {% block subtitle %}{{ _("Harvest sources") }}{% endblock %} -{% block content_action %} +{% block add_link %} {{ _('Add Harvest Source') }} {% endblock %} +{# CKAN 2.0 #} +{% block add_action_content %} + {{ self.add_link() }} +{% endblock %} + +{# CKAN 2.1 #} +{% block content_action %} + {{ self.add_link() }} +{% endblock %} + {% block breadcrumb_content %}
  • {{ h.nav_named_link(_('Harvest Sources'), '{0}_search'.format(c.dataset_type)) }}
  • {% endblock %}