From 6952ab008154f36933af23d44661cf42a744e055 Mon Sep 17 00:00:00 2001 From: Joachim Date: Wed, 29 Dec 2021 17:10:44 +0100 Subject: [PATCH] Solve markup validation issues --- bookwyrm/templates/book/book.html | 16 ++++++++++++---- bookwyrm/templates/snippets/book_cover.html | 3 --- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index 79acffc4..5fba69b0 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -63,16 +63,24 @@
{% if not book.cover %} {% if user_authenticated %} - {% trans "Click to add cover" as button_text %} - {% include 'book/cover_add_modal.html' with book=book controls_text="add_cover" controls_uid=book.id %} {% if request.GET.cover_error %}

{% trans "Failed to load cover" %}

{% endif %} {% 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 %} diff --git a/bookwyrm/templates/snippets/book_cover.html b/bookwyrm/templates/snippets/book_cover.html index 829fbb65..0f684482 100644 --- a/bookwyrm/templates/snippets/book_cover.html +++ b/bookwyrm/templates/snippets/book_cover.html @@ -62,9 +62,6 @@ >

{{ book.alt_text }}

- {% if text_append %} -

{{ text_append }}

- {% endif %}
{% endif %}