{% ckan_extends %} {% 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) %}
  • {% 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 %} {% if res.datastore_active %} {% endif %} {% endblock %}
  • {% endif %} {% if h.is_enabled_utilizations_org(pkg.owner_org) %}
  • {{ _('Create utilization application') }}
  • {% endif %} {% if h.is_enabled_resources_org(pkg.owner_org) %}
  • {{ _('Comment') }}
  • {% endif %} {% endblock %} {% block resource_read_url %} {% if res.url and h.is_url(res.url) %}

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

    {% elif res.url %}

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

    {% endif %} {% endblock %} {% block resource_additional_information_inner %}

    {{ _('Additional Information') }}

    {% if h.is_enabled_downloads_org(pkg.owner_org) %} {% endif %} {% if h.is_enabled_utilizations_org(pkg.owner_org) %} {% endif %} {% if h.is_enabled_resources_org(pkg.owner_org) %} {% if h.is_enabled_rating_org(pkg.owner_org) %} {% endif %} {% endif %} {% if h.is_enabled_utilizations_org(pkg.owner_org) %} {% endif %} {% for key, value in h.format_resource_items(res.items()) %} {% if key not in ('created', 'metadata modified', 'last modified', 'format') %} {% endif %} {% endfor %}
    {{ _('Field') }} {{ _('Value') }}
    {{ _('Downloads') }} {{ h.get_resource_downloads(res.id) }}
    {{ _('Utilizations') }} {{ h.get_resource_utilizations(resource.id) }}
    {{ _('Comments') }} {{ h.get_resource_comments(resource.id) }}
    {{ _('Rating') }} {{ h.get_resource_rating(resource.id)|round(1) }}
    {{ _('Issue Resolutions') }} {{ h.get_resource_issue_resolutions(res.id) }}
    {{ _('Data last updated') }} {{ h.render_datetime(res.last_modified) or h.render_datetime(res.created) or _('unknown') }}
    {{ _('Metadata last updated') }} {{ h.render_datetime(res.metadata_modified) or h.render_datetime(res.created) or _('unknown') }}
    {{ _('Created') }} {{ h.render_datetime(res.created) or _('unknown') }}
    {{ _('Format') }} {{ res.format or res.mimetype_inner or res.mimetype or _('unknown') }}
    {{ _('License') }} {% snippet "snippets/license.html", pkg_dict=pkg, text_only=True %}
    {{ key | capitalize }}{{ value }}
    {% endblock %}