{% extends "admin/change_form.html" %} {% load static i18n render_bundle_csp %} {% block extrastyle %} {{ block.super }} {# include phosphor icons as css; must match version used in base site #} {% render_bundle_csp "iiif" "css" %} {% endblock %} {% block admin_change_form_document_ready %} {{ block.super }} {% render_bundle_csp "iiif" "js" attrs='defer' %} {% render_bundle_csp "admin" "js" attrs='defer' %} {% endblock %} {# Render mixed normal and inline fieldsets #} {% block field_sets %} {% include "admin/snippets/mixed_inlines_fieldsets.html" %} {% endblock %} {# Remove standard inline rendering #} {% block inline_field_sets %} {% endblock %} {% block after_field_sets %} {% if original.pk %} {# don't display record history when adding new document #}
{% include "admin/corpus/document/log_entry.html" with log_entry=original.log_entries.last %} view full history
{% include "admin/corpus/document/log_entry.html" with log_entry=original.log_entries.first %}
{% endif %} {# display & link to other documents on this fragment if there are any #} {% with original.fragments_other_docs as other_docs %} {% if other_docs %}

{# Translators: Other documents on the same fragment/shelfmark #} {% blocktranslate count counter=original.fragments.count trimmed %} Other documents on this shelfmark {% plural %} Other documents on these shelfmarks {% endblocktranslate %}

{% endif %} {% endwith %} {% endblock %}