diff --git a/bookwyrm/templates/book/suggestion_list/list.html b/bookwyrm/templates/book/suggestion_list/list.html index 635d5d93b..805fa43a6 100644 --- a/bookwyrm/templates/book/suggestion_list/list.html +++ b/bookwyrm/templates/book/suggestion_list/list.html @@ -3,16 +3,16 @@

{% trans "Suggestions" %} - {% if book.suggestion_list %} - - {% blocktrans trimmed with count=book.suggestion_list.listitem_set.count|intcomma %} - View all {{ count }} suggestions - {% endblocktrans %} - - {% endif %}

{% if book.suggestion_list %} + +

+ {% blocktrans trimmed with title=book.title %} + Readers who liked {{ title }} recommend giving these books a try: + {% endblocktrans %} +

+ {% with book.suggestion_list.listitem_set.all|slice:3 as items %} {% if items|length == 0 %} @@ -22,16 +22,22 @@ {% else %} + + {% blocktrans trimmed with count=book.suggestion_list.listitem_set.count|intcomma %} + View all {{ count }} suggestions + {% endblocktrans %} +
    {% for item in items %}
  1. {% include "book/suggestion_list/book_card.html" %}
  2. {% endfor %} -
  3. - {% include "book/suggestion_list/search.html" %} -
+ +
+ {% include "book/suggestion_list/search.html" %} +
{% endif %} {% endwith %} {% else %} diff --git a/bookwyrm/templates/book/suggestion_list/search.html b/bookwyrm/templates/book/suggestion_list/search.html index 4446bbb34..583ac8727 100644 --- a/bookwyrm/templates/book/suggestion_list/search.html +++ b/bookwyrm/templates/book/suggestion_list/search.html @@ -12,7 +12,7 @@ {% url 'book' book_id=book.id as partial_url %} {% with search_url=partial_url|add:"#add-suggestions" %} - {% include "lists/suggestion_search.html" with is_suggestion=True query_param="suggestion_query" %} + {% include "lists/suggestion_search.html" with is_suggestion=True query_param="suggestion_query" columns=True %} {% endwith %} {% endwith %} diff --git a/bookwyrm/templates/lists/list_item_notes.html b/bookwyrm/templates/lists/list_item_notes.html index c7fff17c4..dd03c8cc9 100644 --- a/bookwyrm/templates/lists/list_item_notes.html +++ b/bookwyrm/templates/lists/list_item_notes.html @@ -2,20 +2,22 @@ {% load utilities %} {% if item.notes %} -
- -
-
-
- {% url 'user-feed' item.user|username as user_path %} - {% blocktrans trimmed with username=item.user.display_name %} - {{ username }} says: - {% endblocktrans %} -
- {% include 'snippets/trimmed_text.html' with no_trim=no_trim full=item.notes %} -
+
+
+ +
+ {% url 'user-feed' item.user|username as user_path %} + {% blocktrans trimmed with username=item.user.display_name %} + {{ username }} says: + {% endblocktrans %} +
+
+
+ + {% include 'snippets/trimmed_text.html' with no_trim=no_trim full=item.notes %} + {% if item.user == request.user and not hide_edit %}
diff --git a/bookwyrm/templates/lists/suggestion_search.html b/bookwyrm/templates/lists/suggestion_search.html index b432afa49..f8fa10cbd 100644 --- a/bookwyrm/templates/lists/suggestion_search.html +++ b/bookwyrm/templates/lists/suggestion_search.html @@ -27,7 +27,9 @@ {% endif %} {% if suggested_books|length > 0 %} + {% for book in suggested_books %} + {% endif %}