123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {% ckan_extends %}
- {% block resource_additional_information_inner %}
- {# This is copied from core ckan, but with the changes marked #}
- <div class="module-content">
- <h2>{{ _('Additional Information') }}</h2>
- <table class="table table-striped table-bordered table-condensed" data-module="table-toggle-more">
- <thead>
- <tr>
- <th scope="col">{{ _('Field') }}</th>
- <th scope="col">{{ _('Value') }}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th scope="row">{{ _('Last updated') }}</th>
- <td>{{ h.render_datetime(res.last_modified) or h.render_datetime(res.revision_timestamp) or h.render_datetime(res.created) or _('unknown') }}</td>
- </tr>
- <tr>
- <th scope="row">{{ _('Created') }}</th>
- <td>{{ h.render_datetime(res.created) or _('unknown') }}</td>
- </tr>
- <tr>
- <th scope="row">{{ _('Format') }}</th>
- <td>{{ res.mimetype_inner or res.mimetype or res.format or _('unknown') }}</td>
- </tr>
- <tr>
- <th scope="row">{{ _('License') }}</th>
- <td>{% snippet "snippets/license.html", pkg_dict=pkg, text_only=True %}</td>
- </tr>
- {# We replaced h.format_resource_items with h.archiver_format_resource_items so that we can hide the archiver key #}
- {% for key, value in h.archiver_format_resource_items(res.items()) %}
- <tr class="toggle-more"><th scope="row">{{ key }}</th><td>{{ value }}</td></tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
- {{ h.archiver_is_resource_broken_html(c.resource) }}<br>
- {{ h.archiver_is_resource_cached_html(c.resource) }}
- {% endblock %}
|