{% set url = h.url_for(controller='package', action='resource_read', id=pkg.name, resource_id=res.id) %}
  • {% block resource_item_title %} {# This should be the same as in settings.py. TODO: remove latter comparison and use value from settings. #} {% if res.url != 'http://' and h.resource_display_name(res) != 'http://' %}

    {{ _(h.resource_display_name(res)) if _(h.resource_display_name(res)) != _('Unnamed resource') else res.url | truncate(50) }}{{ res.format }} {{ h.popular('views', res.tracking_summary.total, min=10) if res.tracking_summary}}

    {% endif %} {% endblock %}

    {% if res.url != 'http://' and h.resource_display_name(res) != 'http://' %} {% if res.description %} {{ h.markdown_extract(_(res.description), extract_length=80) }} {% else %} {#{{ _('No description available') }}#} {% endif %} {% endif %}

    {% if res.url != 'http://' and h.resource_display_name(res) != 'http://' %}

    {#{{ _('Explore') }}#} {{ _('Download') }}

    {% endif %}