diff --git a/app/templates/book/components/header_buttons.html b/app/templates/book/components/header_buttons.html index fd1ca76..0a3af00 100644 --- a/app/templates/book/components/header_buttons.html +++ b/app/templates/book/components/header_buttons.html @@ -2,36 +2,62 @@ diff --git a/app/templates/book/my_library.html b/app/templates/book/my_library.html index 7de957a..fe46e70 100644 --- a/app/templates/book/my_library.html +++ b/app/templates/book/my_library.html @@ -11,32 +11,40 @@ {% endif %} -
+
{% if not current_user.is_authenticated %} - -
-
- +
+ +
{% endif %} - {% if current_user.is_authenticated and books.total<1 %} - -
-
- + + {% if current_user.is_authenticated and not books.total %} +
+ +
{% endif %} +
-
- {% if current_user.is_authenticated and books.total>0 %} -

My library

- {% if current_user.is_authenticated %} - {% include 'book/components/header_buttons.html' %} - {% endif %} -
- {% endif %} - {% for book in books if not book.is_deleted%} - + {% if current_user.is_authenticated and books.total %} +
+

My library

+ {% if current_user.is_authenticated %} + {% include 'book/components/header_buttons.html' %} + {% endif %} +
+ {% endif %} + + {% for book in books if not book.is_deleted %}
@@ -81,59 +89,58 @@ {% if current_user.is_authenticated and page.pages > 1 %} -
- +
{% endif %} -
{% endblock %}