Makes ede45bd work in both CKAN 2.0 and 2.1

This commit is contained in:
John Martin 2013-09-05 15:36:00 +01:00
parent ede45bd1be
commit 71aedf3fd4
1 changed files with 11 additions and 1 deletions

View File

@ -2,13 +2,23 @@
{% block subtitle %}{{ _("Harvest sources") }}{% endblock %}
{% block content_action %}
{% block add_link %}
<a href="{{ h.url_for('{0}_new'.format(c.dataset_type)) }}" class="btn btn-primary">
<i class="icon-plus-sign-alt"></i>
{{ _('Add Harvest Source') }}
</a>
{% 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 %}
<li class="active">{{ h.nav_named_link(_('Harvest Sources'), '{0}_search'.format(c.dataset_type)) }}</li>
{% endblock %}