{% ckan_extends %} {% block resource_inner %}

{{ h.resource_display_name(res) | truncate(50) }} {% if res.description %} - {{ res.description }} {% endif %}

{% block resource_actions %} {{ super() }} {% endblock %}
{% block resource_content %} {% block resource_read_title %}{% endblock %} {% block resource_read_url %}{% endblock %} {% endblock %} {% block data_preview %} {% if res.datastore_active %}

Data dictionary for this resource

{% endif %} {{ super() }} {% endblock %}
{% endblock %} {% 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 btn-default', icon='wrench' %}
  • {% endif %} {% if res.url and h.is_url(res.url) %}
  • {% endif %} {% if res.datastore_active %}
  • {% if res.datastore_active %} {% set loading_text = _('Loading...') %} {% set api_info_url = h.url_for(controller='api', action='snippet', ver=1, snippet_path='api_info.html', resource_id=res.id) %} {{ _('Data API') }} {% endif %}
  • {% endif %} {% endblock %} {% block resource_data_dictionary %} {% if res.datastore_active %} {% endif %} {{ super() }} {% endblock %} {% block resource_additional_information %} {% block resource_additional_information_inner %} {% if res.datastore_active %} {% set ddict=h.datastore_dictionary(res.id) %}

    {{ _('Data Dictionary') }}

    {% for f in ddict %} {% endfor %}
    {{ _('Column') }} {{ _('Type') }} {{ _('Label') }} {{ _('Description') }}
    {{ f.id }} {{ f.type }} {{ h.get_translated(f.get('info', {}), 'label') }} {{ h.render_markdown( h.get_translated(f.get('info', {}), 'notes')) }}
    {% endif %} {% endblock %} {% endblock %} {% block secondary_content %} {% endblock %} {% block primary %}
    {% block primary_content %} {{ super() }} {% endblock %}
    {% endblock %} {% block resource_view_nav %} {% set resource_preview = h.resource_preview(c.resource, c.package) %} {% set multiple_views = resource_views|length > 1 %} {% if multiple_views %} {% snippet "package/snippets/resource_views_list.html", views=resource_views, pkg=pkg, is_edit=false, view_id=current_resource_view['id'], resource_preview=resource_preview, resource=c.resource, extra_class="nav-tabs nav-tabs-plain" %} {% endif %} {% endblock %}