{# Displays a sidebard module with information for given package pkg - The 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 %} {% endblock %} {% block groups %}
{{ _('Kategorie') }}:
{{ pkg.groups|map(attribute='display_name')|join('; ') }} {% if h.check_access('package_update', {'id':pkg.id }) %}
{% link_for _('Edit Categories'), controller='package', action='groups', id=pkg.name, class_='btn btn-edit-categories', icon='wrench' %}
{% endif %}
{% endblock %} {% block nums %} {% endblock %} {% block tags %}
{{ _('Tags') }}:

{{ pkg.tags|map(attribute='display_name')|join('; ') or '-'}}

{% endblock %} {% block license %}
{{ _('License') }}:
{%set lic=pkg.license_title if pkg.license_title else '-'%} {%set name=' (' + pkg.licenseAttributionByText +')' if pkg.licenseAttributionByText else ''%}

{{ lic }}{{ name }}

{% endblock %} {% block timerange %}
{{ _('timerange') }}:
{%set start=h.render_datetime(pkg.temporal_start,'%d.%m.%Y') if pkg.temporal_start else ''%} {%set end=h.render_datetime(pkg.temporal_end,'%d.%m.%Y') if pkg.temporal_end else ''%}

{{ start }} - {{ end }}

{% endblock %} {% block last_change %}
{{ _('last change') }}:
{{h.render_datetime(pkg.metadata_modified,'%d.%m.%Y') }}
{% endblock %} {% endblock %}
{% endif %} {% endblock %}