{% ckan_extends %}

{% set about_route = 'home.about' if h.ckan_version() > '2.8' else 'about' %}


{% block header_site_navigation_tabs %}
  {{ h.build_nav_main(
    ('search', _('Datasets')),
    ('organizations_index', _('Organizations')),
    ('group_index', _('Groups')),
    ('showcase_index', _('Showcases')),
    (about_route, _('About'))
  ) }}
{% endblock %}

{% ckan_extends %}

{% set ckan_29_or_higher = h.ckan_version().split('.')[1] | int >= 9 %}

{% set search_route = 'dataset.search' if ckan_29_or_higher else 'search' %}
{% set org_route = 'organization.index' if ckan_29_or_higher else 'organization_index' %}
{% set group_route = 'group.index' if ckan_29_or_higher else 'group_index' %}
{% set showcase_route = 'showcase.index' if ckan_29_or_higher else 'showcase_index' %}
{% set about_route = 'home.about' if ckan_29_or_higher else 'about' %}


{% block header_site_navigation_tabs %}
  {{ h.build_nav_main(
    (search_route, _('Datasets')),
    (org_route, _('Organizations')),
    (group_route, _('Groups')),
    (showcase_route, _('Showcases')),
    (about_route, _('About'))
  ) }}
{% endblock %}

Use new style routes on CKAN >= 2.9
Use new style routes on CKAN >= 2.9
