Skip to content

Commit

Permalink
style: djhtml lint applied
Browse files Browse the repository at this point in the history
hepplerj committed Aug 16, 2024
1 parent d1ce075 commit cc2c764
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions templates/partials/document_display.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% if document.attached_images.all %}
{% for image in document.attached_images.all %}
{% if image.image_type == "recto" or image.image_type == "verso" %}
<a href="{% url 'manuscript_page' document.slug %}">
<img src="{{ image.thumbnail.url }}" class="h-auto w-full" alt="Manuscript page {{document.page_range}}"
loading="lazy" />
</a>
<p class="prose-figcaption font-sans">
Page {{ document.page_range }} ({{document.docside}})
</p>
{% endif %}
{% endfor %}
{% for image in document.attached_images.all %}
{% if image.image_type == "recto" or image.image_type == "verso" %}
<a href="{% url 'manuscript_page' document.slug %}">
<img src="{{ image.thumbnail.url }}" class="h-auto w-full" alt="Manuscript page {{document.page_range}}"
loading="lazy" />
</a>
<p class="prose-figcaption font-sans">
Page {{ document.page_range }} ({{document.docside}})
</p>
{% endif %}
{% endfor %}
{% else %}
<p>No images available</p>
<p>No images available</p>
{% endif %}

0 comments on commit cc2c764

Please sign in to comment.