{% ckan_extends %} {# Note: ckanext-dcor_scheme also extends this page #} {# Note: ckanext-dcor_theme also extends this page #} {# Set the correct download name (HTML5 field download) #} {% block resource_actions_inner %} {% if h.check_access('package_update', {'id':pkg.id }) and not is_activity_archive %}
  • {% link_for _('Manage'), named_route=pkg.type ~ '_resource.edit', id=pkg.name, resource_id=res.id, class_='btn btn-default', icon='wrench' %}
  • {% endif %} {% if res.url and h.is_url(res.url) %}
  • {# https://github.com/ckan/ckan/issues/6564 #} {% if res.resource_type in ('listing', 'service') %} {{ _('View') }} {% elif res.resource_type == 'api' %} {{ _('API Endpoint') }} {% elif not res.has_views and not res.url_type == 'upload' %} {{ _('Go to resource') }} {% else %} {{ _('Download') }} {% endif %} {% block download_resource_button %} {# Download Condensed button #} {% if res.mimetype == "RT-DC" and h.dc_serve_resource_has_condensed(res.id) %} {{ _('Download Condensed') }} {% endif %} {% if res.datastore_active %} {% endif %} {% endblock %}
  • {% endif %} {% endblock %}