{# Displays a sidebard module with information for given package pkg - The showcase package dict that owns the resources. Example: {% snippet "package/snippets/info.html", pkg=pkg %} #} {% block package_info %} {% if pkg %} {% block package_info_inner %} {% block heading %} {{ pkg.title or pkg.name }} {% endblock %} {% if pkg.author %} {{_('Submitted by')}} {{ pkg.author }} {% endif %} {% if pkg.url %} {{ _('Launch website') }} {% endif %} {% endblock %} {{ _('Datasets in Showcase') }} {% if showcase_pkgs %} {% for package in showcase_pkgs %} {% set truncate_title = truncate_title or 80 %} {% set title = package.title or package.name %} {{ h.link_to(title|truncate(truncate_title), h.url_for(controller='dataset' if h.ckan_version().split('.')[1] | int >= 9 else 'package', action='read', id=package.name)) }} {% endfor %} {% else %} {{_('There are no Datasets in this Showcase')}} {% endif %} {% endif %} {% endblock %}
{{ pkg.author }}
{{_('There are no Datasets in this Showcase')}}