Skip to content

Commit

Permalink
Merge pull request #47 from chnm/fix/thumbnails
Browse files Browse the repository at this point in the history
fix: Thumbnail for next page should only show non-forensic image
  • Loading branch information
hepplerj authored Aug 15, 2024
2 parents 2c768fd + af9a931 commit c1729ea
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions templates/manuscript_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@
<div class="row-span-1 p-4">
{% if next_page %}
<a href="{% url 'manuscript_page' next_page.slug %}">
{% for image in next_page.attached_images.all %}
<img class="w-32 h-32 object-cover" src="{{ image.thumbnail.url }}" alt="Next Page" load="lazy">
{% endfor %}
<caption>Next Page &rarr;</caption>
{# skip the image_type "fornesics" #}
{% if image_type != "forensics" %}
{% for image in next_page.attached_images.all %}
<img class="w-32 h-32 object-cover" src="{{ image.thumbnail.url }}" alt="Next Page" load="lazy">
{% endfor %}
<caption>Next Page &rarr;</caption>
{% endif %}
</a>
{% endif %}

Expand Down

0 comments on commit c1729ea

Please sign in to comment.