{% extends "page.html" %} {% set pkg = c.pkg_dict %} {% set res = c.resource %} {% block title %}{{ h.dataset_display_name(c.package) }} - {{ h.resource_display_name(res) }} - {{ super() }}{% endblock %} {% block breadcrumb_content %}
  • {% link_for _('Datasets'), controller='package', action='search', highlight_actions = 'new index' %}
  • {% link_for h.dataset_display_name(c.package)|truncate(15), controller='package', action='read', id=c.package.get('name') %}
  • {{ h.resource_display_name(res)|truncate(30) }}
  • {% endblock %} {% block actions_content %} {% snippet 'package/snippets/back_to_package_action.html', pkg=pkg %} {% if h.check_access('package_update', {'id':pkg.id }) %}
  • {% link_for _('Edit'), controller='package', action='resource_edit', id=pkg.name, resource_id=res.id, class_='btn', icon='wrench' %}
  • {% endif %} {% if res.url %}
  • {% if res.resource_type in ('listing', 'service') %} {{ _('View') }} {% elif res.resource_type == 'api' %} {{ _('API Endpoint') }} {% else %} {{ _('Download') }} {%endif %}
  • {% endif %} {% if config.get('ckan.datastore.enabled', False) %} {% snippet 'package/snippets/data_api_button.html', resource=res, datastore_root_url=c.datastore_api %} {% endif %} {% endblock %} {% block main_content %} {{ self.flash() }} {{ self.toolbar() }}

    {{ h.resource_display_name(res) | truncate(50) }}

    {{ res.description or _('(No description)') }} {% if not res.description and c.package.notes %}
    {{ h.markdown_extract(c.package.get('notes')) }}
    From the Dataset {% endif %}
    {{ self.primary() }} {{ self.secondary() }} {% endblock %} {% block primary_content %} {% if res %}

    Additional Information

    {% with blacklist = ["name", "description", "url"] %} {% for key,value in res.items()|sort if value and key not in blacklist %} {% endfor %} {% endwith %}
    Field Value
    {{ key }}{{ value }}
    {% endif %} {# {% if config.get('ckan.datastore.enabled', false) %}
    {{ data_api_help(c.datastore_api) }}
    {% endif %} #} {% endblock %} {% block secondary_content %}

    Resource Information

    {% snippet "package/snippets/resources.html", pkg=pkg, active=res.id %} {% snippet "snippets/social.html" %} {# TODO: Embed this with javascript
    {% snippet 'snippets/datapreview_embed_dialog.html' %}
    #} {% endblock %} {% block styles %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}