From 2544ea12c77c6f46621dfa45c51a808ca382f46d Mon Sep 17 00:00:00 2001 From: Joachim Date: Fri, 17 Dec 2021 17:00:10 +0100 Subject: [PATCH] Revert changes on layout --- bookwyrm/static/js/bookwyrm.js | 3 ++ bookwyrm/templates/layout.html | 71 ++++++++++------------------------ 2 files changed, 23 insertions(+), 51 deletions(-) diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index ba6cce043..e7586072d 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -427,6 +427,9 @@ let BookWyrm = new class { * with the `data-modal-open` attribute * pointing to a modal by its id. * @return {undefined} + * + * See https://github.com/bookwyrm-social/bookwyrm/pull/1633 + * for information about using the modal. */ handleModalButton(event) { const modalButton = event.currentTarget; diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index 4447754b1..25aaf1b6b 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -158,14 +158,28 @@ {% endwith %} - {% endif %} - - {% if not request.user.is_authenticated %} + {% else %} @@ -244,51 +258,6 @@ -{# Login modal #} -{% if not request.user.is_authenticated %} - -{% endif %} -