{% ckan_extends %} {% block resource_actions_inner %} {% if h.check_access('package_update', {'id':pkg.id }) %}
  • {% link_for _('Manage'), controller='package', action='resource_edit', id=pkg.name, resource_id=res.id, class_='btn', icon='wrench' %}
  • {% endif %} {% if res.url and h.is_url(res.url) %} {% if res.url.lower().find('/querycontext') == -1 and res.url.lower().find('/contextentities/') == -1 %}
  • {% if res.resource_type in ('listing', 'service') %} {{ _('View') }} {% elif res.resource_type == 'api' %} {{ _('API Endpoint') }} {% elif not res.has_views or not res.can_be_previewed %} {{ _('Go to resource') }} {% else %} {{ _('Download') }} {% endif %}
  • {% endif %} {% endif %} {% if 'datastore' in g.plugins %}
  • {% snippet 'package/snippets/data_api_button.html', resource=res, datastore_root_url=c.datastore_api %}
  • {% endif %} {% endblock %} {% block resource_read_url %} {% if res.format == "fiware-ngsi" %}

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

    {% if res.tenant %}

    {{ _('Tenant:') }} {{ _(res.tenant)}}

    {% endif %} {% if res.service_path %}

    {{ _('Service Path:') }} {{ _(res.service_path)}}

    {% endif %} {% else %}

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

    {% endif %} {% endblock %}