From bc4a1c6c41a60436c143ada8e8f38a9f51628240 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 19 Jun 2022 14:06:36 +1000 Subject: [PATCH] Guided tour of book page This is intended to be one of the earlier pages in the tour. It should show users the concept of reading status, editions, and other useful points. --- bookwyrm/templates/book/book.html | 7 +- bookwyrm/templates/guided_tour/book.html | 149 +++++++++++++++++++++++ 2 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 bookwyrm/templates/guided_tour/book.html diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index e7d10f4f3..fe0b87e7e 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -210,7 +210,7 @@ {% with work=book.parent_work %}

- + {% blocktrans trimmed count counter=work.editions.count with count=work.editions.count|intcomma %} {{ count }} edition {% plural %} @@ -392,7 +392,7 @@ {% endif %} -

+ @@ -405,4 +405,7 @@ {% block scripts %} +{% if user.show_guided_tour %} + {% include 'guided_tour/book.html' %} +{% endif %} {% endblock %} diff --git a/bookwyrm/templates/guided_tour/book.html b/bookwyrm/templates/guided_tour/book.html new file mode 100644 index 000000000..33001b256 --- /dev/null +++ b/bookwyrm/templates/guided_tour/book.html @@ -0,0 +1,149 @@ +{% load i18n %} + +