{% extends "base.html" %} {% block title %}{{ h.dataset_display_name(package)}}—{{ h.resource_display_name(resource)}} - {{ super() }}{% endblock %} {% block bodytag %} {{ super() }} {% if h.resource_view_get_fields(resource) %}class="dt-view"{% endif %} {%- endblock -%} {%- block page -%} {% if h.resource_view_get_fields(resource) %} {# Skip the whole table if the datastore has errors #} {#- pass the datadictionary to javascript, so we can init columns there -#} {%- set datadictionary = h.datastore_dictionary(resource.id, resource_view.get('show_fields')) -%} {%- set nbspval = " "|safe -%} {%- set current_language = h.lang() -%}
| _id | {% for field in datadictionary -%}{%- if data_dictionary_labels and field.info is defined and field.info.label|length -%} {{ field.info.label|replace(" ", nbspval) }} {%- else -%} {{ field.id|replace(" ", nbspval) }} {%- endif -%} {%- if data_dictionary_labels and field.info is defined and (field.info.label|length or field.info.notes|length)-%} {%- endif -%} | {% endfor -%}colspacer |
|---|---|---|
| {% for field in datadictionary -%} | {{- field.id -}} | {% endfor -%}
{{ _('This resource view is not available at the moment.') }}
{% endif %} {%- endblock -%} {%- block styles -%} {{- super() -}} {% asset 'ckanext-datatablesview/main-css' %} {% asset 'ckanext-datatablesview/main-js' %} {% endblock %} {% block custom_styles %}{% endblock %}