From 9a0ccb6b3be68b8b72e00f68daf0140efc36412c Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Tue, 20 Jun 2023 09:12:45 +0300 Subject: [PATCH] issue merge username and `view profile`, so username links to profile and we don't need different tab for it #182 --- app/templates/book/favorite_books.html | 4 ++-- app/templates/header.html | 5 +---- app/templates/sidebar.html | 13 ++++++------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/app/templates/book/favorite_books.html b/app/templates/book/favorite_books.html index c0efd9c..02001b1 100644 --- a/app/templates/book/favorite_books.html +++ b/app/templates/book/favorite_books.html @@ -13,7 +13,7 @@ {% endif %} - {% if current_user.is_authenticated and current_user.stars|length==0 %} + {% if current_user.is_authenticated and books.total<1 %}
You don't have favorite books start to explore book to choose one!
@@ -21,7 +21,7 @@ {% endif %}
- {% if current_user.is_authenticated and current_user.stars|length>0 %} + {% if current_user.is_authenticated and books.total>0 %}

Fav books

{% if current_user.is_authenticated %} diff --git a/app/templates/header.html b/app/templates/header.html index 9757f64..c52c5e2 100644 --- a/app/templates/header.html +++ b/app/templates/header.html @@ -110,10 +110,7 @@