From dc7f07476fad02e78ecc77d72e9c88bf0737ad10 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Fri, 10 May 2024 14:31:11 +0200 Subject: [PATCH] properly access book data --- rusty-library/static/style.css | 5 +++++ rusty-library/templates/base.html | 6 +++--- rusty-library/templates/book_card.html | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/rusty-library/static/style.css b/rusty-library/static/style.css index e0e813b..6a9a15b 100644 --- a/rusty-library/static/style.css +++ b/rusty-library/static/style.css @@ -39,3 +39,8 @@ nav ul li { text-align: center; height: 6rem; } + +footer small { + display: flex; + justify-content: space-between; +} diff --git a/rusty-library/templates/base.html b/rusty-library/templates/base.html index d4964ef..4219f2d 100644 --- a/rusty-library/templates/base.html +++ b/rusty-library/templates/base.html @@ -28,9 +28,9 @@ diff --git a/rusty-library/templates/book_card.html b/rusty-library/templates/book_card.html index 318fb93..db491eb 100644 --- a/rusty-library/templates/book_card.html +++ b/rusty-library/templates/book_card.html @@ -1,7 +1,7 @@
-
{{ book.title }}
+
{{ book.data.title }}

{{ book.author.name }}

@@ -14,7 +14,7 @@ {% endif %}
- book cover + book cover