From 8b14f8585e05972790be23c96532960fdc589b04 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 18 May 2021 10:55:05 -0700 Subject: [PATCH] Small fixes for list display --- bookwyrm/templates/lists/list.html | 4 ++-- bookwyrm/templates/lists/list_items.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 55dc68aae..d740ee80f 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -51,9 +51,9 @@

{% include 'snippets/stars.html' with rating=item.book|rating:request.user %}

-

+

{{ book|book_description|to_markdown|default:""|safe|truncatewords_html:20 }} -

+
{% include 'snippets/shelve_button/shelve_button.html' %} diff --git a/bookwyrm/templates/lists/list_items.html b/bookwyrm/templates/lists/list_items.html index 1fdaaca92..8cbf6ee50 100644 --- a/bookwyrm/templates/lists/list_items.html +++ b/bookwyrm/templates/lists/list_items.html @@ -22,7 +22,7 @@ {% endwith %}
-
+
{% if list.description %} {{ list.description|to_markdown|safe|truncatechars_html:30 }} {% else %}