Makes ede45bd
work in both CKAN 2.0 and 2.1
This commit is contained in:
parent
ede45bd1be
commit
71aedf3fd4
|
@ -2,13 +2,23 @@
|
||||||
|
|
||||||
{% block subtitle %}{{ _("Harvest sources") }}{% endblock %}
|
{% 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">
|
<a href="{{ h.url_for('{0}_new'.format(c.dataset_type)) }}" class="btn btn-primary">
|
||||||
<i class="icon-plus-sign-alt"></i>
|
<i class="icon-plus-sign-alt"></i>
|
||||||
{{ _('Add Harvest Source') }}
|
{{ _('Add Harvest Source') }}
|
||||||
</a>
|
</a>
|
||||||
{% endblock %}
|
{% 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 %}
|
{% block breadcrumb_content %}
|
||||||
<li class="active">{{ h.nav_named_link(_('Harvest Sources'), '{0}_search'.format(c.dataset_type)) }}</li>
|
<li class="active">{{ h.nav_named_link(_('Harvest Sources'), '{0}_search'.format(c.dataset_type)) }}</li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue