From 78fa949237bf1621f038a107e70a738583677148 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 28 Nov 2020 07:55:31 -0800 Subject: [PATCH 1/2] Inline form to add description to book --- bookwyrm/templates/book.html | 33 +++++++++++++++++++++++++++++++-- bookwyrm/urls.py | 1 + bookwyrm/view_actions.py | 21 +++++++++++++++++++-- 3 files changed, 51 insertions(+), 4 deletions(-) diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index b0064e1f..f7456367 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -57,6 +57,35 @@ {% include 'snippets/trimmed_text.html' with full=book|book_description %} + {% if request.user.is_authenticated and not book|book_description %} +
+ + +
+ +
+ + +
+ {% endif %} + + {% if book.parent_work.edition_set.count > 1 %}

{{ book.parent_work.edition_set.count }} editions

{% endif %} @@ -112,7 +141,7 @@
- +
@@ -135,7 +164,7 @@ -