From a690b4f6b7ef460835bc5f512efa7190b926b7bc Mon Sep 17 00:00:00 2001 From: Konstantin Sivakov Date: Fri, 7 Sep 2018 16:01:44 +0200 Subject: [PATCH 1/2] Fix urls in the breadcrumb --- ckan/templates/package/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckan/templates/package/base.html b/ckan/templates/package/base.html index ad137bdb49b..8ea75b53711 100644 --- a/ckan/templates/package/base.html +++ b/ckan/templates/package/base.html @@ -12,8 +12,8 @@ {% if pkg.organization %} {% set organization = h.get_translated(pkg.organization, 'title') or pkg.organization.name %} {% set group_type = pkg.organization.type %} -
  • {% link_for _('Organizations'), controller='organization', action='index', named_route=group_type + '_index' %}
  • -
  • {% link_for organization|truncate(30), controller='organization', action='read', id=pkg.organization.name, named_route=group_type + '_read' %}
  • +
  • {% link_for _('Organizations'), controller='organization', action='index' %}
  • +
  • {% link_for organization|truncate(30), controller='organization', action='read', id=pkg.organization.name %}
  • {% else %}
  • {% link_for _('Datasets'), named_route='dataset.search' %}
  • {% endif %} From eeaafd52c985c18e2c8a66845625ec26ad3dc481 Mon Sep 17 00:00:00 2001 From: Konstantin Sivakov Date: Tue, 11 Sep 2018 09:45:16 +0200 Subject: [PATCH 2/2] Use blueprints instead of controllers --- ckan/templates/package/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckan/templates/package/base.html b/ckan/templates/package/base.html index 8ea75b53711..aee47d83551 100644 --- a/ckan/templates/package/base.html +++ b/ckan/templates/package/base.html @@ -12,8 +12,8 @@ {% if pkg.organization %} {% set organization = h.get_translated(pkg.organization, 'title') or pkg.organization.name %} {% set group_type = pkg.organization.type %} -
  • {% link_for _('Organizations'), controller='organization', action='index' %}
  • -
  • {% link_for organization|truncate(30), controller='organization', action='read', id=pkg.organization.name %}
  • +
  • {% link_for _('Organizations'), named_route='organization.index' %}
  • +
  • {% link_for organization|truncate(30), named_route='organization.read', id=pkg.organization.name %}
  • {% else %}
  • {% link_for _('Datasets'), named_route='dataset.search' %}
  • {% endif %}