diff --git a/bookwyrm/templates/guided_tour/book.html b/bookwyrm/templates/guided_tour/book.html
index ee703e3b9..44a37f65e 100644
--- a/bookwyrm/templates/guided_tour/book.html
+++ b/bookwyrm/templates/guided_tour/book.html
@@ -7,7 +7,7 @@
tour.addSteps([
{
- text: "{% trans 'This is home page of a book. Let\'s see what you can do while you\'re here!' %}",
+ text: `{% trans "This is home page of a book. Let's see what you can do while you're here!" %}`,
title: "{% trans 'Book page' %}",
buttons: [
{
@@ -52,7 +52,7 @@
],
},
{
- text: "{% trans 'You can also manually add reading dates here. Unlike changing the reading status using the previous method, adding dates manually will not automatically add them to your Read or Reading shelves.
Got a favourite you re-read every year? We\'ve got you covered - you can add multiple read dates for the same book 😀' %}",
+ text: `{% trans "You can also manually add reading dates here. Unlike changing the reading status using the previous method, adding dates manually will not automatically add them to your Read or Reading shelves." %}
{% trans "Got a favourite you re-read every year? We've got you covered - you can add multiple read dates for the same book 😀" %}`,
title: "{% trans 'Add read dates' %}",
attachTo: {
element: "#tour-add-readthrough",
@@ -196,7 +196,7 @@
],
},
{
- text: "{% trans 'If your review or comment might ruin the book for someone who hasn\'t read it yet, you can hide your post behind a spoiler alert' %}",
+ text: `{% trans "If your review or comment might ruin the book for someone who hasn't read it yet, you can hide your post behind a spoiler alert" %}`,
title: "{% trans 'Spoiler alerts' %}",
attachTo: {
element: "",
@@ -221,7 +221,7 @@
],
},
{
- text: "{% trans 'Choose who can see your post here. Post privacy can be Public (everyone can see), Unlisted (everyone can see, but it doesn\'t appear in public feeds or discovery pages), Followers (only your followers can see), or Private (only you can see)' %}",
+ text: `{% trans "Choose who can see your post here. Post privacy can be Public (everyone can see), Unlisted (everyone can see, but it doesn't appear in public feeds or discovery pages), Followers (only your followers can see), or Private (only you can see)" %}`,
title: "{% trans 'Post privacy' %}",
attachTo: {
element: "[id^=form_review] [id^=privacy_]",
@@ -270,7 +270,7 @@
],
},
{
- text: "{% trans '
Continue the tour by selecting Your books from the drop down menu.
' %}", + text: '{% trans "Continue the tour by selecting Your books from the drop down menu." %}
', title: "{% trans 'Next' %}", attachTo: { element: () => { diff --git a/bookwyrm/templates/guided_tour/group.html b/bookwyrm/templates/guided_tour/group.html index 58f627b06..cec0c5f08 100644 --- a/bookwyrm/templates/guided_tour/group.html +++ b/bookwyrm/templates/guided_tour/group.html @@ -74,7 +74,7 @@ ], }, { - text: "{% trans 'As well as creating lists from the Lists page, you can create a group-curated list here on the group\'s homepage. Any member of the group can create a list curated by group members.' %}", + text: `{% trans "As well as creating lists from the Lists page, you can create a group-curated list here on the group's homepage. Any member of the group can create a list curated by group members." %}"` title: "{% trans 'Group lists' %}", attachTo: { element: "#tour-create-list", @@ -97,7 +97,7 @@ ], }, { - text: "{% trans 'Congratulations, you\'ve finished the tour! Now you know the basics, but there is lots more to explore on your own. Happy reading!' %}", + text: `{% trans "Congratulations, you've finished the tour! Now you know the basics, but there is lots more to explore on your own. Happy reading!" %}`, title: "{% trans 'Finish' %}", buttons: [ { diff --git a/bookwyrm/templates/guided_tour/home.html b/bookwyrm/templates/guided_tour/home.html index e9bc3d9fc..04abd70c5 100644 --- a/bookwyrm/templates/guided_tour/home.html +++ b/bookwyrm/templates/guided_tour/home.html @@ -6,8 +6,8 @@ const initiateTour = new Shepherd.Tour({ }); function checkResponsiveState(anchor) { - let menu = document.querySelector('#navbar-dropdown'); - let display = window.getComputedStyle(menu).display; + let menu = document.querySelector('#navbar-dropdown'); + let display = window.getComputedStyle(menu).display; return display == 'flex' ? anchor : '.navbar-burger'; } @@ -76,7 +76,7 @@ homeTour.addSteps([ ], }, { - text: "{% trans 'Search book records by scanning an ISBN barcode using your device\'s camera - great when you\'re in the bookstore or library!' %}", + text: `{% trans "Search book records by scanning an ISBN barcode using your device's camera - great when you're in the bookstore or library!" %}`, title: "{% trans 'Barcode reader' %}", attachTo: { element: "#tour-barcode", @@ -197,7 +197,7 @@ homeTour.addSteps([ ], }, { - text: "{% trans 'Your profile, books, direct messages, and settings can be accessed by clicking on your name in the menu here.Try selecting Profile from the drop down menu to continue the tour.
' %}", + eext: `{% trans "Your profile, books, direct messages, and settings can be accessed by clicking on your name in the menu here." %}{% trans "Try selecting Profile from the drop down menu to continue the tour." %}
' %}`, title: "{% trans 'Profile and settings menu' %}", attachTo: { element: checkResponsiveState('#navbar-dropdown'), diff --git a/bookwyrm/templates/guided_tour/lists.html b/bookwyrm/templates/guided_tour/lists.html index 1ec1756b1..66aa7ccd5 100644 --- a/bookwyrm/templates/guided_tour/lists.html +++ b/bookwyrm/templates/guided_tour/lists.html @@ -10,7 +10,7 @@ tour.addSteps([ { - text: "{% trans 'This is the lists page where you can discover book lists created by any user. A List is a collection of books, similar to a shelf.Click the Create List button, then Next to continue the tour
' %}", + text: `{% trans "Let's see how to create a new list." %}{% trans "Click the Create List button, then Next to continue the tour" %}
`, title: "{% trans 'Creating a new list' %}", attachTo: { element: "#tour-create-list", diff --git a/bookwyrm/templates/guided_tour/search.html b/bookwyrm/templates/guided_tour/search.html index 507352e05..aa8cf7538 100644 --- a/bookwyrm/templates/guided_tour/search.html +++ b/bookwyrm/templates/guided_tour/search.html @@ -40,7 +40,7 @@ } else if (localResult) { tour.addStep( { - text: "{% trans 'If the book you are looking for is already on this Bookwyrm instance, you can click on the title to go to the book\'s page.' %}", + text: `{% trans "If the book you are looking for is already on this Bookwyrm instance, you can click on the title to go to the book's page." %}`, title: "{% trans 'Searching' %}", attachTo: { element: "#tour-local-book-search-result", @@ -118,7 +118,7 @@ ], }, { - text: "{% trans 'If you still can\'t find your book, you can add a record manually.' %}", + text: `{% trans "If you still can't find your book, you can add a record manually." %}`, title: "{% trans 'Add a record manally' %}", attachTo: { element: "#tour-manually-add-book", @@ -144,7 +144,7 @@ } tour.addStep({ - text: "{% trans 'Import, manually add, or view an existing book to continue the tour.
' %}", + text: '
{% trans "Import, manually add, or view an existing book to continue the tour." %}
', title: "{% trans 'Continue the tour' %}", buttons: [ { diff --git a/bookwyrm/templates/guided_tour/user_books.html b/bookwyrm/templates/guided_tour/user_books.html index 8931e428d..b1383450d 100644 --- a/bookwyrm/templates/guided_tour/user_books.html +++ b/bookwyrm/templates/guided_tour/user_books.html @@ -98,7 +98,7 @@ ], }, { - text: "{% trans 'Now that we\'ve explored book shelves, let\'s take a look at a related concept: book lists!
Click on the Lists link here to continue the tour.' %}", + text: `{% trans "Now that we've explored book shelves, let's take a look at a related concept: book lists!" %}
{% trans "Click on the Lists link here to continue the tour." %}`, title: "{% trans 'Lists' %}", attachTo: { element: () => { diff --git a/bookwyrm/templates/guided_tour/user_groups.html b/bookwyrm/templates/guided_tour/user_groups.html index 2ca4b0029..5ce69b900 100644 --- a/bookwyrm/templates/guided_tour/user_groups.html +++ b/bookwyrm/templates/guided_tour/user_groups.html @@ -28,7 +28,7 @@ ], }, { - text: "{% trans 'Let\'s create a new group!
Click the Create group button, then Next to continue the tour
' %}", + text: `{% trans "Let's create a new group!" %}{% trans "Click the Create group button, then Next to continue the tour" %}
`, title: "{% trans 'Create group' %}", attachTo: { element: "#tour-create-group", @@ -99,7 +99,7 @@ ], }, { - text: "{% trans 'Once you\'re happy with how everything is set up, click the Save button to create your new group.Create and save a group to continue the tour.
' %}", + text: `{% trans "Once you're happy with how everything is set up, click the Save button to create your new group." %}{% trans "Create and save a group to continue the tour." %}
`, title: "{% trans 'Save your group' %}", buttons: [ { diff --git a/bookwyrm/templates/guided_tour/user_profile.html b/bookwyrm/templates/guided_tour/user_profile.html index 7c08233dd..7d7ebe242 100644 --- a/bookwyrm/templates/guided_tour/user_profile.html +++ b/bookwyrm/templates/guided_tour/user_profile.html @@ -28,7 +28,7 @@ tour.addSteps([ ], }, { - text: "{% trans 'This tab shows everything you have read towards your annual reading goal, or allows you to set one. You don\'t have to set a reading goal if that\'s not your thing!' %}", + text: `{% trans "This tab shows everything you have read towards your annual reading goal, or allows you to set one. You don't have to set a reading goal if that's not your thing!" %}`, title: "{% trans 'Reading Goal' %}", attachTo: { element: "#tour-reading-goal", @@ -97,7 +97,7 @@ tour.addSteps([ ], }, { - text: "{% trans 'The Books tab shows your book shelves. We\'ll explore this later in the tour.' %}", + text: `{% trans "The Books tab shows your book shelves. We'll explore this later in the tour." %}`, title: "{% trans 'Books' %}", attachTo: { element: "#tour-shelves-tab", @@ -120,7 +120,7 @@ tour.addSteps([ ], }, { - text: "{% trans 'Now you understand the basics of your profile page, let\s add a book to your shelves.Search for a title or author to continue the tour.
' %}", + text: `{% trans "Now you understand the basics of your profile page, let's add a book to your shelves." %}{% trans "Search for a title or author to continue the tour." %}
`, title: "{% trans 'Find a book' %}", attachTo: { element: "#tour-search",