Skip to content

Commit

Permalink
fix: Replaced missing div
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj committed Nov 19, 2024
1 parent 351d451 commit e4baecc
Showing 1 changed file with 25 additions and 44 deletions.
69 changes: 25 additions & 44 deletions templates/manuscript_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
<a href="{% url 'manuscript_page' previous_page.slug %}">
{% for image in previous_page.attached_images.all %}
{% if image.image_type != "forensics" %}
<img class="w-32 h-32 object-cover" src="{{ image.thumbnail.url }}" alt="Previous Page"
loading="lazy">
<img class="w-32 h-32 object-cover" src="{{ image.thumbnail.url }}" alt="Previous Page" loading="lazy">
{% endif %}
{% endfor %}
<caption>&larr; Previous Page</caption>
Expand Down Expand Up @@ -156,25 +155,6 @@ <h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">
{% endif %}
</div>
</div>

<div class="lg:hidden mt-6">
<div class="page-selector">
<div class="relative">
<div class="inline-block relative">
<div class="flex justify-between items-center border border-gray-300 rounded overflow-hidden">
<select onchange="location = this.value;"
class="appearance-none bg-transparent py-2 pr-8 pl-2">
{% for page in all_pages %}
<option value="{% url 'manuscript_page' page.slug %}" {% if page.id==current_page.id %}selected{% endif %}>
{{ page.page_range }} ({{page.docside}})
</option>
{% endfor %}
</select>
</div>
</div>
</div>
</div>
</div>
</div>

{% if fragments %}
Expand Down Expand Up @@ -226,30 +206,31 @@ <h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">
</div>
</div>
{% endif %}
</div>

<div class="font-sans mt-4 bg-amber-50">
<div class="p-10 ml-10 mr-10">
<h3 class="text-center font-semibold text-1xl pb-4 mb-4 uppercase">Document Details</h3>
<ul>
<li><strong>Description</strong>: {{ manuscript_page.description }}</li>
<li><strong>Document type</strong>: {{ manuscript_page.doctype }}</li>
<li><strong>Document side</strong>: {{ manuscript_page.docside }}</li>
<li><strong>Page</strong>: {{ manuscript_page.page_range }}</li>
<li><strong>Page tagged with</strong>:
{% for tag in manuscript_page.tags.all %}
<span class="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-winterthur-dk-blue ring-1 ring-inset ring-blue-700/10">{{ tag.name }}</span>
{% endfor %}
</li>
</ul>

<p class="mt-4">
<a href="{% url 'manuscript' %}" class="text-winterthur-dk-blue hover:underline">Browse all manuscript pages</a>
</p>

<hr class="mt-3 mb-3" />
<h2 class="text-center font-semibold text-1xl pb-4 mb-4 uppercase">Cite this page</h2>
<p><em>The Denig Manuscript</em>, Winterthur Museum, Garden & Library and the Roy Rosenzweig Center for History and New Media (2024): p. {{ manuscript_page.page_range }}. <a href="{% url 'manuscript_page' manuscript_page.slug %}" class="text-winterthur-dk-blue hover:underline">https://denigmanuscript/.org{% url 'manuscript_page' manuscript_page.slug %}</a></p>
</div>
<div class="font-sans mt-4 bg-amber-50">
<div class="p-10 ml-10 mr-10">
<h3 class="text-center font-semibold text-1xl pb-4 mb-4 uppercase">Document Details</h3>
<ul>
<li><strong>Description</strong>: {{ manuscript_page.description }}</li>
<li><strong>Document type</strong>: {{ manuscript_page.doctype }}</li>
<li><strong>Document side</strong>: {{ manuscript_page.docside }}</li>
<li><strong>Page</strong>: {{ manuscript_page.page_range }}</li>
<li><strong>Page tagged with</strong>:
{% for tag in manuscript_page.tags.all %}
<span class="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-winterthur-dk-blue ring-1 ring-inset ring-blue-700/10">{{ tag.name }}</span>
{% endfor %}
</li>
</ul>

<p class="mt-4">
<a href="{% url 'manuscript' %}" class="text-winterthur-dk-blue hover:underline">Browse all manuscript pages</a>
</p>

<hr class="mt-3 mb-3" />
<h2 class="text-center font-semibold text-1xl pb-4 mb-4 uppercase">Cite this page</h2>
<p><em>The Denig Manuscript</em>, Winterthur Museum, Garden & Library and the Roy Rosenzweig Center for History and New Media (2024): p. {{ manuscript_page.page_range }}. <a href="{% url 'manuscript_page' manuscript_page.slug %}" class="text-winterthur-dk-blue hover:underline">https://denigmanuscript/.org{% url 'manuscript_page' manuscript_page.slug %}</a></p>
</div>
</div>
</div>
{% endblock content %}

0 comments on commit e4baecc

Please sign in to comment.