From 06b4a55979879dc05eedf1ec5e9e0151c644292c Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 3 Jul 2022 09:10:43 +1000 Subject: [PATCH] add lists to guided tour Takes user through the main /list page, as well as the options for creating a list. --- bookwyrm/templates/guided_tour/lists.html | 179 ++++++++++++++++++++++ bookwyrm/templates/lists/form.html | 6 +- bookwyrm/templates/lists/lists.html | 8 +- 3 files changed, 189 insertions(+), 4 deletions(-) create mode 100644 bookwyrm/templates/guided_tour/lists.html diff --git a/bookwyrm/templates/guided_tour/lists.html b/bookwyrm/templates/guided_tour/lists.html new file mode 100644 index 000000000..e3f1bf4d8 --- /dev/null +++ b/bookwyrm/templates/guided_tour/lists.html @@ -0,0 +1,179 @@ +{% load i18n %} + + diff --git a/bookwyrm/templates/lists/form.html b/bookwyrm/templates/lists/form.html index 3558d8cc0..d5b76f15e 100644 --- a/bookwyrm/templates/lists/form.html +++ b/bookwyrm/templates/lists/form.html @@ -16,7 +16,7 @@
- {% trans "List curation:" %} + {% trans "List curation:" %}
-

{% trans "You don't have any Groups yet!" %}

+

{% trans "You don't have any Groups yet!" %}

{% trans "Create a Group" %}

@@ -123,7 +123,7 @@
{% endif %}
-
+
{% include 'snippets/privacy_select.html' with current=list.privacy %}
diff --git a/bookwyrm/templates/lists/lists.html b/bookwyrm/templates/lists/lists.html index 49091bcf0..a9f061fb2 100644 --- a/bookwyrm/templates/lists/lists.html +++ b/bookwyrm/templates/lists/lists.html @@ -16,7 +16,7 @@
{% if request.user.is_authenticated %} -
+
{% trans "Create List" as button_text %} {% include 'snippets/toggle/open_button.html' with controls_text="create_list" icon_with_text="plus" text=button_text focus="create_list_header" %}
@@ -54,3 +54,9 @@ {% endif %} {% endblock %} + +{% block scripts %} +{% if user.show_guided_tour %} + {% include 'guided_tour/lists.html' %} +{% endif %} +{% endblock %}