{% ckan_extends %} {% block resource_actions_inner %} {% asset 'feedback/feedback-resource-read-css' %} {% block action_manage %} {% if h.check_access('package_update', {'id':pkg.id }) %}
  • {% link_for _('Manage'), named_route=pkg.type ~ '_resource.edit', id=pkg.name, resource_id=res.id, class_='btn btn-default', icon='wrench' %}
  • {% endif %} {% endblock action_manage %} {% if h.is_enabled_likes(pkg.owner_org) %}
  • {{ h.get_resource_like_count(res.id) }}
  • {% endif %}
  • {% if res.datastore_active %}
    {% endif %} {% if res.url and h.is_url(res.url) %} {% 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' %} {% if h.is_enabled_downloads() %} {% else %} {% endif %} {{ _('Go to resource') }} {% else %} {% if h.is_enabled_downloads() %} {% else %} {% endif %} {{ _('Download') }} {% endif %} {% endif %} {% block download_resource_button %} {% if res.datastore_active %} {% if h.is_base_public_folder_bs3() %} {% else %} {% endif %} {% endif %} {% endblock %} {% if res.datastore_active %}
    {% endif %}
  • {% if h.is_enabled_utilizations(pkg.owner_org) %}
  • {{ _('Create utilization application') }}
  • {% endif %} {% if h.is_enabled_resources(pkg.owner_org) %}
  • {{ _('Comment') }}
  • {% endif %} {% endblock %} {% block resource_read_url %} {% if res.url and h.is_url(res.url) %}

    {{ _('URL:') }} {% if h.is_enabled_downloads() %} {{ res.url }} {% else %} {{ res.url }} {% endif %}

    {% elif res.url %}

    {{ _('URL:') }} {{ res.url }}

    {% endif %} {% endblock %} {%- block scripts %} {{ super() }} {% asset 'feedback/feedback-resource_read-js' %} {% endblock -%}