From 903118417667a21fe687d56da2f4e2f5d0b5f1be Mon Sep 17 00:00:00 2001 From: Pablo Barton Date: Sat, 17 Apr 2021 21:31:38 -0400 Subject: [PATCH] addressing some review --- bookwyrm/templates/lists/list.html | 2 +- .../snippets/booklist-pagination.html | 64 +++++++++---------- bookwyrm/tests/views/test_list.py | 19 +++--- bookwyrm/views/list.py | 42 +++++++----- 4 files changed, 69 insertions(+), 58 deletions(-) diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 3d338097..c9464c85 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -13,7 +13,6 @@
- {% include "snippets/booklist-pagination.html" with page=items %} {% if not items.object_list.exists %}

{% trans "This list is currently empty" %}

{% else %} @@ -58,6 +57,7 @@ {% endfor %} {% endif %} + {% include "snippets/booklist-pagination.html" with page=items %}
diff --git a/bookwyrm/templates/snippets/booklist-pagination.html b/bookwyrm/templates/snippets/booklist-pagination.html index 69fae52e..161c743c 100644 --- a/bookwyrm/templates/snippets/booklist-pagination.html +++ b/bookwyrm/templates/snippets/booklist-pagination.html @@ -1,6 +1,37 @@ {% load i18n %} {% if page.has_other_pages %} -