Skip to content

Commit

Permalink
Merge pull request #1725 from Princeton-CDH/feature/1460-doc-merge-img
Browse files Browse the repository at this point in the history
Add img thumbnails to doc merge preview (#1460)
  • Loading branch information
blms authored Jan 23, 2025
2 parents 9307235 + 614cff6 commit 98bd0f3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions geniza/corpus/templates/corpus/snippets/document_option_label.html
Original file line number Diff line number Diff line change
@@ -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 #}

<div class="merge-document-label">
<h2>{{ document }}
<a target="_blank" href="{% url 'admin:corpus_document_change' document.id %}"
title="Go to this document's admin edit page">
title="Go to this document's admin edit page">
<img src="/static/admin/img/icon-changelink.svg" alt="Change"></a>
</h2>
{% if document.description %}
Expand Down Expand Up @@ -32,6 +33,12 @@ <h2>{{ document }}
<label>Needs Review</label><div>{{ document.needs_review }}</div>
</div>
{% endif %}
{% if document.iiif_images %}
<div class="form-row">
<label>Images</label>
{{ document.admin_thumbnails }}
</div>
{% endif %}
{% if document.footnotes.count %}
<div class="form-row">
<label>Scholarship Records</label>
Expand All @@ -43,8 +50,8 @@ <h2>{{ document }}
<label>Bibliographic citation</label>
<div>{{ source.grouper.formatted_display|safe }}
<a href="{% url 'admin:footnotes_source_change' source.grouper.id %}"
title="Go to this source's admin edit page"><img src="/static/admin/img/icon-changelink.svg"
alt="Change"></a>
title="Go to this source's admin edit page"><img src="/static/admin/img/icon-changelink.svg"
alt="Change"></a>
{% if source.grouper.source_type.type == "Unpublished" %}
<div class="unpublished">unpublished</div>
{% endif %}
Expand Down

0 comments on commit 98bd0f3

Please sign in to comment.