diff --git a/ckanext/harvest/templates/source/admin_base.html b/ckanext/harvest/templates/source/admin_base.html index 68bc4e9..9c83b84 100644 --- a/ckanext/harvest/templates/source/admin_base.html +++ b/ckanext/harvest/templates/source/admin_base.html @@ -29,7 +29,7 @@ {{ '' if show_li }} - {{ '
  • ' if show_li }}{{ h.nav_named_link(_('View harvest source'), '{0}_read'.format(c.dataset_type), id=source.name, class_='btn', icon='eye-open')}}{{ '
  • ' if show_li }} + {{ '
  • ' if show_li }}{{ h.nav_link(_('View harvest source'), named_route='{0}_read'.format(c.dataset_type), id=source.name, class_='btn', icon='eye-open')}}{{ '
  • ' if show_li }} {% endblock %} {# CKAN 2.0 #} diff --git a/ckanext/harvest/templates/source/base.html b/ckanext/harvest/templates/source/base.html index 0d4712c..f0859c3 100644 --- a/ckanext/harvest/templates/source/base.html +++ b/ckanext/harvest/templates/source/base.html @@ -14,12 +14,12 @@ {% block breadcrumb_content %} {% if source.organization %} {% set org = source.organization %} -
  • {{ h.nav_named_link(_('Organizations'), 'organizations_index') }}
  • -
  • {{ h.nav_named_link(org.title or org.name|truncate(10), 'organization_read', id=org.name) }}
  • -
  • {{ h.nav_named_link(_('Harvest Sources'), '{0}_search'.format(c.dataset_type)) }}
  • - {{ h.nav_named_link(c.harvest_source.title|truncate(10), '{0}_read'.format(c.dataset_type), id=c.harvest_source.name) }} +
  • {{ h.nav_link(_('Organizations'), named_route='organizations_index') }}
  • +
  • {{ h.nav_link(org.title or org.name|truncate(10), named_route='organization_read', id=org.name) }}
  • +
  • {{ h.nav_link(_('Harvest Sources'), named_route='{0}_search'.format(c.dataset_type)) }}
  • + {{ h.nav_link(c.harvest_source.title|truncate(10), named_route='{0}_read'.format(c.dataset_type), id=c.harvest_source.name) }} {% else %} -
  • {{ h.nav_named_link(_('Harvest Sources'), '{0}_search'.format(c.dataset_type)) }}
  • - {{ h.nav_named_link(c.harvest_source.title|truncate(30), '{0}_read'.format(c.dataset_type), id=c.harvest_source.name) }} +
  • {{ h.nav_link(_('Harvest Sources'), named_route='{0}_search'.format(c.dataset_type)) }}
  • + {{ h.nav_link(c.harvest_source.title|truncate(30), named_route='{0}_read'.format(c.dataset_type), id=c.harvest_source.name) }} {% endif %} {% endblock %} diff --git a/ckanext/harvest/templates/source/job/read.html b/ckanext/harvest/templates/source/job/read.html index b4f6993..46fee1b 100644 --- a/ckanext/harvest/templates/source/job/read.html +++ b/ckanext/harvest/templates/source/job/read.html @@ -6,7 +6,7 @@

    - {{ h.nav_named_link(_('Back to job list'), 'harvest_job_list', source=source.name, class_='btn', icon='arrow-left')}} + {{ h.nav_link(_('Back to job list'), named_route='harvest_job_list', source=source.name, class_='btn', icon='arrow-left')}}

    {{ _('Job Report') }}

    diff --git a/ckanext/harvest/templates/source/read_base.html b/ckanext/harvest/templates/source/read_base.html index b1ba26d..e7c3177 100644 --- a/ckanext/harvest/templates/source/read_base.html +++ b/ckanext/harvest/templates/source/read_base.html @@ -1,7 +1,7 @@ {% extends "source/base.html" %} {% block admin_link %} - {{ h.nav_named_link(_('Admin'), '{0}_admin'.format(c.dataset_type), id=c.harvest_source.name, class_='btn btn-primary', icon='wrench')}} + {{ h.nav_link(_('Admin'), named_route='{0}_admin'.format(c.dataset_type), id=c.harvest_source.name, class_='btn btn-primary', icon='wrench')}} {% endblock %} {# CKAN 2.0 #} @@ -19,7 +19,7 @@ {% if c.harvest_source.notes %}

    {{ h.markdown_extract(c.harvest_source.notes, 180) }} - {{ h.nav_named_link(_('read more'), '{0}_about'.format(c.dataset_type), id=c.harvest_source.name) }} + {{ h.nav_link(_('read more'), named_route='{0}_about'.format(c.dataset_type), id=c.harvest_source.name) }}

    {% else %}

    {{ _('There is no description for this harvest source') }}

    diff --git a/ckanext/harvest/templates/source/search.html b/ckanext/harvest/templates/source/search.html index 895467e..b7797b9 100644 --- a/ckanext/harvest/templates/source/search.html +++ b/ckanext/harvest/templates/source/search.html @@ -4,7 +4,7 @@ {% block breadcrumb_content %} -
  • {{ h.nav_named_link(_('Harvest Sources'), '{0}_search'.format(c.dataset_type)) }}
  • +
  • {{ h.nav_link(_('Harvest Sources'), named_route='{0}_search'.format(c.dataset_type)) }}
  • {% endblock %}