resource_read.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% ckan_extends %}
  2. {% block resource_additional_information_inner %}
  3. {# This is copied from core ckan, but with the changes marked #}
  4. <div class="module-content">
  5. <h2>{{ _('Additional Information') }}</h2>
  6. <table class="table table-striped table-bordered table-condensed" data-module="table-toggle-more">
  7. <thead>
  8. <tr>
  9. <th scope="col">{{ _('Field') }}</th>
  10. <th scope="col">{{ _('Value') }}</th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. <tr>
  15. <th scope="row">{{ _('Last updated') }}</th>
  16. <td>{{ h.render_datetime(res.last_modified) or h.render_datetime(res.revision_timestamp) or h.render_datetime(res.created) or _('unknown') }}</td>
  17. </tr>
  18. <tr>
  19. <th scope="row">{{ _('Created') }}</th>
  20. <td>{{ h.render_datetime(res.created) or _('unknown') }}</td>
  21. </tr>
  22. <tr>
  23. <th scope="row">{{ _('Format') }}</th>
  24. <td>{{ res.mimetype_inner or res.mimetype or res.format or _('unknown') }}</td>
  25. </tr>
  26. <tr>
  27. <th scope="row">{{ _('License') }}</th>
  28. <td>{% snippet "snippets/license.html", pkg_dict=pkg, text_only=True %}</td>
  29. </tr>
  30. {# We replaced h.format_resource_items with h.archiver_format_resource_items so that we can hide the archiver key #}
  31. {% for key, value in h.archiver_format_resource_items(res.items()) %}
  32. <tr class="toggle-more"><th scope="row">{{ key }}</th><td>{{ value }}</td></tr>
  33. {% endfor %}
  34. </tbody>
  35. </table>
  36. </div>
  37. {{ h.archiver_is_resource_broken_html(c.resource) }}<br>
  38. {{ h.archiver_is_resource_cached_html(c.resource) }}
  39. {% endblock %}