Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add img thumbnails to doc merge preview (#1460) #1725

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading