Skip to content

Commit

Permalink
fix: Removed erroneous extra hyperlink
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj committed Aug 16, 2024
1 parent cc2c764 commit 20a46ca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions templates/music.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ <h1>Music.</h1>
Fermentum odio eu feugiat pretium nibh. Ipsum faucibus vitae aliquet nec ullamcorper sit amet risus.</p>

<h2 class="text-2xl">Pages with hymnal music</h2>

{% if hymnal_list %} <!--document_list-->
<div class="grid grid-cols-2 md:grid-cols-2 sm:grid-cols-1 gap-2">
{% for document in hymnal_list %}
<div>
{% if document.attached_images.all %}
{% for image in document.attached_images.all %}
<a href="{% url 'manuscript_page' document.id %}">
{% 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="Document Image" load="lazy" />
</a>
<p class="prose-figcaption font-sans">
Page {{ document.page_range }} ({{document.docside}})
</p>
{% endif %}
{% 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}}" load="lazy" />
</a>
<p class="prose-figcaption font-sans">
Page {{ document.page_range }} ({{document.docside}})
</p>
{% endif %}
{% endfor %}
{% else %}
{# Handle case where no images are attached #}
Expand All @@ -51,4 +51,4 @@ <h2 class="text-2xl">Pages with hymnal music</h2>
{% endif %}
</div>
</div>
{% endblock content %}
{% endblock content %}

0 comments on commit 20a46ca

Please sign in to comment.