{% set url_action = 'resource_edit' if url_is_edit and can_edit else 'resource_read' %} {% set url = h.url_for(controller='package', action=url_action, id=pkg.name, resource_id=res.id) %}
  • {% block resource_item_title %} {{ h.resource_display_name(res) | truncate(50) }}{{ h.get_translated(res, 'format') }} {{ h.popular('views', res.tracking_summary.total, min=10) }} {% endblock %} {% block resource_item_description %}

    {% if res.description %} {{ h.markdown_extract(h.get_translated(res, 'description'), extract_length=80) }} {% endif %}

    {% endblock %} {% block resource_item_explore %} {% if not url_is_edit %} {% endif %} {% endblock %}