{# Displays a single of dataset with database icon and improved styling. package - A package to display. item_class - The class name to use on the list item. hide_resources - If true hides the resources (default: false). Example: {% snippet 'snippets/package_item.html', package=package %} #} {% set title = package.title or package.name %} {% set notes = h.markdown_extract(package.notes, extract_length=180) %} {% block package_item %} {% block content %}
{% block heading %}

{% block heading_private %} {% if package.private %} {{ _('Private') }} {% endif %} {% endblock %} {% block heading_title %} {{title|truncate(80)}} {% endblock %} {% block heading_meta %} {% if package.get('state', '').startswith('draft') %} {{ _('Draft') }} {% elif package.get('state', '').startswith('deleted') %} {{ _('Deleted') }} {% endif %} {{ h.popular('recent views', package.tracking_summary.recent, min=10) if package.tracking_summary }} {% endblock %}

{% endblock %} {% block notes %} {% if notes %}
{{ notes|urlize }}
{% else %}

{{ h.humanize_entity_type('package', package.type, 'no description') or _("There is no description for this dataset") }}

{% endif %} {% endblock %}
{% block resources %} {% if package.resources and not hide_resources %} {% block resources_outer %}
{{ package.resources | length }} {{ _('resources') }}
{% endblock %} {% endif %} {% endblock %}
{% endblock %} {% endblock %}