{% 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) %} {% set download = res.url or url %} {% set res_details = h.odsh_get_resource_details(res.id) %}
{% if res.description %} {{ h.markdown_extract(h.get_translated(res, 'description'))}} {% endif %}