From 1ced057b862e4e6f9811b6d6c942e0625cab3184 Mon Sep 17 00:00:00 2001 From: TheJoeCoder <joe@radialbog9.uk> Date: Fri, 23 Aug 2024 16:02:55 +0100 Subject: [PATCH] Start view book page --- reader/templates/reader/view_book.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/reader/templates/reader/view_book.html b/reader/templates/reader/view_book.html index 32b2c83..3988bad 100644 --- a/reader/templates/reader/view_book.html +++ b/reader/templates/reader/view_book.html @@ -3,7 +3,25 @@ {% block title %}{{ book.title }}{% endblock %} {% block content %} - <h1 class="title">{{ book.title }}</h1> - <br> + <div class="columns"> + {% if book.image %} + <div class="column is-one-quarter"> + <figure class="image"> + <img src="{{ book.image.url }}" alt="{{ book.title }}"> + </figure> + </div> + {% endif %} + <div class="column"> + <h1 class="title"> + {{ book.title }} + {% if book.public %} + <i class="bi bi-globe"></i> + {% else %} + <i class="bi bi-lock"></i> + {% endif %} + </h1> + <br> + </div> + </div> {% endblock %} \ No newline at end of file -- GitLab