From ec7d0db8430bf447f714ef88ec679360721b89db Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Tue, 5 Oct 2021 21:48:59 +1100 Subject: [PATCH] linting fixes --- bookwyrm/static/js/bookwyrm.js | 6 ++-- bookwyrm/templates/groups/find_users.html | 2 +- bookwyrm/templates/groups/group.html | 30 +++++++++---------- bookwyrm/templates/groups/members.html | 2 +- .../templates/notifications/items/accept.html | 2 +- .../templates/notifications/items/invite.html | 2 +- .../templates/notifications/items/join.html | 2 +- 7 files changed, 24 insertions(+), 22 deletions(-) diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index 5bf845a4..66fd5a61 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -134,8 +134,10 @@ let BookWyrm = new class { let trigger = event.currentTarget; let hidden = trigger.closest('.hidden-form').querySelectorAll('.is-hidden')[0]; - // if the form has already been revealed, there is no '.is-hidden' element - // so this doesn't really work as a toggle + /** + * if the form has already been revealed, there is no '.is-hidden' element + * so this doesn't really work as a toggle + */ if (hidden) { this.addRemoveClass(hidden, 'is-hidden', !hidden); diff --git a/bookwyrm/templates/groups/find_users.html b/bookwyrm/templates/groups/find_users.html index ec890a93..57d4277c 100644 --- a/bookwyrm/templates/groups/find_users.html +++ b/bookwyrm/templates/groups/find_users.html @@ -5,4 +5,4 @@ Add new members! {% include 'groups/suggested_users.html' with suggested_users=suggested_users query=query %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/bookwyrm/templates/groups/group.html b/bookwyrm/templates/groups/group.html index 408f1f94..03ccae18 100644 --- a/bookwyrm/templates/groups/group.html +++ b/bookwyrm/templates/groups/group.html @@ -64,21 +64,21 @@ {% if group.user == request.user %}
-
-

Find new members

-
-
- -
-
- -
-
-
+
+

Find new members

+
+
+ +
+
+ +
+
+
{% endif %} diff --git a/bookwyrm/templates/groups/members.html b/bookwyrm/templates/groups/members.html index f8eefaff..22eb0cb6 100644 --- a/bookwyrm/templates/groups/members.html +++ b/bookwyrm/templates/groups/members.html @@ -45,4 +45,4 @@ {% endif %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/bookwyrm/templates/notifications/items/accept.html b/bookwyrm/templates/notifications/items/accept.html index 5aab79af..19acab15 100644 --- a/bookwyrm/templates/notifications/items/accept.html +++ b/bookwyrm/templates/notifications/items/accept.html @@ -17,4 +17,4 @@ accepted your invitation to join group "{{ group_name }}" {% endblocktrans %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/bookwyrm/templates/notifications/items/invite.html b/bookwyrm/templates/notifications/items/invite.html index c50dba06..63a46260 100644 --- a/bookwyrm/templates/notifications/items/invite.html +++ b/bookwyrm/templates/notifications/items/invite.html @@ -4,7 +4,7 @@ {% load utilities %} {% block primary_link %}{% spaceless %} - {{ notification.related_group.local_path }} + {{ notification.related_group.local_path }} {% endspaceless %}{% endblock %} {% block icon %} diff --git a/bookwyrm/templates/notifications/items/join.html b/bookwyrm/templates/notifications/items/join.html index 3dbc8159..9c766806 100644 --- a/bookwyrm/templates/notifications/items/join.html +++ b/bookwyrm/templates/notifications/items/join.html @@ -4,7 +4,7 @@ {% load utilities %} {% block primary_link %}{% spaceless %} - {{ notification.related_group.local_path }} + {{ notification.related_group.local_path }} {% endspaceless %}{% endblock %} {% block icon %}