From 614cff69ad245554561ecb7b416780131dbdf666 Mon Sep 17 00:00:00 2001 From: Ben Silverman Date: Wed, 22 Jan 2025 16:58:37 -0500 Subject: [PATCH] Add img thumbnails to doc merge preview (#1460) --- .../corpus/snippets/document_option_label.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/geniza/corpus/templates/corpus/snippets/document_option_label.html b/geniza/corpus/templates/corpus/snippets/document_option_label.html index d071719ad..142bdf06d 100644 --- a/geniza/corpus/templates/corpus/snippets/document_option_label.html +++ b/geniza/corpus/templates/corpus/snippets/document_option_label.html @@ -1,10 +1,11 @@ +{% load corpus_extras %} {# template snippet for displaying document label on a form #} {# used on document merge form to provide enough information to merge accurately #}

{{ document }} + title="Go to this document's admin edit page"> Change

{% if document.description %} @@ -32,6 +33,12 @@

{{ document }}
{{ document.needs_review }}

{% endif %} + {% if document.iiif_images %} +
+ + {{ document.admin_thumbnails }} +
+ {% endif %} {% if document.footnotes.count %}
@@ -43,8 +50,8 @@

{{ document }}
{{ source.grouper.formatted_display|safe }} Change + title="Go to this source's admin edit page">Change {% if source.grouper.source_type.type == "Unpublished" %}
unpublished
{% endif %}