From 959c372bc28e27c938e51da3e1e2f999006201f8 Mon Sep 17 00:00:00 2001 From: Aditya Verma Date: Thu, 3 Feb 2022 12:22:50 +0530 Subject: [PATCH 1/3] Added Lists link to books page navbar --- openlibrary/macros/EditionNavBar.html | 3 +++ openlibrary/templates/type/edition/view.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/openlibrary/macros/EditionNavBar.html b/openlibrary/macros/EditionNavBar.html index 41fc2c49faa..459ca9ba2f6 100644 --- a/openlibrary/macros/EditionNavBar.html +++ b/openlibrary/macros/EditionNavBar.html @@ -15,4 +15,7 @@
  • $_("Reviews")
  • +
  • + $_("Lists") +
  • diff --git a/openlibrary/templates/type/edition/view.html b/openlibrary/templates/type/edition/view.html index 3e045f1967b..3aefccd37e7 100644 --- a/openlibrary/templates/type/edition/view.html +++ b/openlibrary/templates/type/edition/view.html @@ -478,7 +478,7 @@

    $_("ID Numbers")

    $# pages like /books/ia:foo00bar are fake records created from metadata API. $# Adding them to lists doesn't work. Disabling it to avoid any issues. $if "lists" in ctx.features and not page.is_fake_record(): -

    $_('Lists containing this Book')

    +

    $_('Lists containing this Book')

    $if work: From 3024ba4f91c0e802a42f07a08416bcfd45b490ac Mon Sep 17 00:00:00 2001 From: Aditya Verma <73935799+homewardgamer@users.noreply.github.com> Date: Fri, 4 Feb 2022 08:47:05 +0530 Subject: [PATCH 2/3] Update view.html --- openlibrary/templates/type/edition/view.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlibrary/templates/type/edition/view.html b/openlibrary/templates/type/edition/view.html index 3aefccd37e7..e6c46500c33 100644 --- a/openlibrary/templates/type/edition/view.html +++ b/openlibrary/templates/type/edition/view.html @@ -478,7 +478,7 @@

    $_("ID Numbers")

    $# pages like /books/ia:foo00bar are fake records created from metadata API. $# Adding them to lists doesn't work. Disabling it to avoid any issues. $if "lists" in ctx.features and not page.is_fake_record(): -

    $_('Lists containing this Book')

    +

    $_('Lists containing this Book')

    $if work: From dcee1a3a75860d47db6fc9c995cb623075ff902f Mon Sep 17 00:00:00 2001 From: Aditya Verma <73935799+homewardgamer@users.noreply.github.com> Date: Fri, 4 Feb 2022 08:47:46 +0530 Subject: [PATCH 3/3] Update EditionNavBar.html --- openlibrary/macros/EditionNavBar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlibrary/macros/EditionNavBar.html b/openlibrary/macros/EditionNavBar.html index 459ca9ba2f6..b5ed990ebb3 100644 --- a/openlibrary/macros/EditionNavBar.html +++ b/openlibrary/macros/EditionNavBar.html @@ -16,6 +16,6 @@ $_("Reviews")
  • - $_("Lists") + $_("Lists")