{# Product catalog item — overrides core snippets/package_item.html. Keeps the same block structure as the original for compatibility. 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). #} {% set title = package.title or package.name %} {% set notes = h.markdown_extract(package.notes, extract_length=200) %} {% block package_item %}
  • {% block content %}
    {# Product icon column #}
    {# Main content column #}
    {% 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 %} {% endblock %}

    {% endblock %} {# Organization badge #} {% if package.organization %} {% endif %} {% block notes %} {% if notes %}

    {{ notes|urlize }}

    {% else %}

    {{ h.humanize_entity_type('package', package.type, 'no description') or _("No description available.") }}

    {% endif %} {% endblock %} {% block resources %} {% if package.resources and not hide_resources %} {% block resources_outer %}
      {% block resources_inner %} {% for resource in h.dict_list_reduce(package.resources, 'format') %}
    • {{ resource }}
    • {% endfor %} {% endblock %}
    {% endblock %} {% endif %} {% endblock %}
    {# /main content #}
    {# /d-flex #} {% endblock %}
  • {% endblock %}