{% extends "page.html" %} {% set pkg = pkg_dict %} {% set dataset_type = dataset_type or pkg.type or 'dataset' %} {% block breadcrumb_content_selected -%} class="active"{% endblock %} {% block subtitle -%} {{ ui.subtitle_item(_(dataset_type.title())) }} {{- super() }} {%- endblock %} {% block breadcrumb_content -%} {%- if pkg -%} {%- set dataset = h.dataset_display_name(pkg) %} {%- if pkg.organization -%} {%- set organization = h.get_translated(pkg.organization, 'title') or pkg.organization.name %} {%- set group_type = pkg.organization.type %} {{- ui.breadcrumb(h.humanize_entity_type('organization', group_type, 'breadcrumb') or _('Organizations'), href=h.url_for(group_type ~ '.index')) }} {{- ui.breadcrumb(organization|truncate(30), href=h.url_for(group_type ~ '.read', id=pkg.organization.name), attrs={"title": organization}) }} {%- else -%} {{ ui.breadcrumb(_(dataset_type.title()), href=h.url_for(dataset_type ~ '.search')) }} {%- endif %} {{- ui.breadcrumb(dataset|truncate(30), href=h.url_for(pkg.type ~ '.read', id=pkg.name, attrs={"title": dataset}), active=self.breadcrumb_content_selected()) }} {%- else -%} {{ ui.breadcrumb(_(dataset_type.title()), href=h.url_for(dataset_type ~ '.search')) }} {{- ui.breadcrumb(h.humanize_entity_type('package', dataset_type, 'create label') or _('Create Dataset'), href="", active=true) }} {%- endif %} {%- endblock %}