Solve markup validation issues
This commit is contained in:
parent
e5f3e9cd2c
commit
6952ab0081
|
@ -63,16 +63,24 @@
|
||||||
<div class="column is-one-fifth">
|
<div class="column is-one-fifth">
|
||||||
{% if not book.cover %}
|
{% if not book.cover %}
|
||||||
{% if user_authenticated %}
|
{% if user_authenticated %}
|
||||||
{% trans "Click to add cover" as button_text %}
|
<button type="button" data-controls="add_cover_{{ book.id }}" data-focus-target="modal_title_add_cover_{{ book.id }}" aria-pressed="false" class="cover-container no-cover is-h-m-mobile">
|
||||||
<button type="button" data-controls="add_cover_{{ book.id }}" data-focus-target="modal_title_add_cover_{{ book.id }}" aria-pressed="false">
|
<img
|
||||||
{% include 'snippets/book_cover.html' with size='xxlarge' size_mobile='medium' book=book cover_class='is-h-m-mobile' text_append=button_text %}
|
class="book-cover"
|
||||||
|
src="{% static "images/no_cover.jpg" %}"
|
||||||
|
alt=""
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
<span class="cover-caption">
|
||||||
|
<span>{{ book.alt_text }}</span>
|
||||||
|
<span>{% trans "Click to add cover" %}</span>
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
{% include 'book/cover_add_modal.html' with book=book controls_text="add_cover" controls_uid=book.id %}
|
{% include 'book/cover_add_modal.html' with book=book controls_text="add_cover" controls_uid=book.id %}
|
||||||
{% if request.GET.cover_error %}
|
{% if request.GET.cover_error %}
|
||||||
<p class="help is-danger">{% trans "Failed to load cover" %}</p>
|
<p class="help is-danger">{% trans "Failed to load cover" %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include 'snippets/book_cover.html' with size='xxlarge' size_mobile='medium' book=book cover_class='is-h-m-mobile' %}
|
{% include 'snippets/book_cover.html' with book=book cover_class='is-h-m-mobile' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -62,9 +62,6 @@
|
||||||
>
|
>
|
||||||
<figcaption class="cover-caption">
|
<figcaption class="cover-caption">
|
||||||
<p>{{ book.alt_text }}</p>
|
<p>{{ book.alt_text }}</p>
|
||||||
{% if text_append %}
|
|
||||||
<p>{{ text_append }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue