diff --git a/ckanext/smdh/templates/package/snippets/resource_item.html b/ckanext/smdh/templates/package/snippets/resource_item.html new file mode 100644 index 0000000..1b640c2 --- /dev/null +++ b/ckanext/smdh/templates/package/snippets/resource_item.html @@ -0,0 +1,15 @@ +{% ckan_extends %} + +{% block resource_item_explore_links %} + {{ super() }} + {% if h.check_access('package_update', {'id':pkg.id }) and not is_activity_archive %} +
  • + {% set loading_text = _('Loading...') %} + {% set api_info_url = h.url_for(controller='api', action='snippet', ver=1, snippet_path='api_popup.html', + resource_id=res.id) %} + {{ _('Data API') }} +
  • + {% endif %} +{% endblock %}