{% ckan_extends %} {% block resource_read_url %} {% set short_url = h.get_short_url_from_object_id(res.id) %} {% if short_url %} {% set short_url_link = h.url_for('short_urls.redirect', code=short_url.code, _external=True) %}
{{ _('Short URL:') }} {{ short_url_link }}
{% endif %} {% if res.url and h.is_url(res.url) %}
{{ _('Download URL:') }} {{ res.url }}
{% elif res.url %}
{{ _('Download URL:') }} {{ res.url }}
{% endif %}
{% endblock %}