From d51006b908240c3494ad79a4f5ea82517a9bd666 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 24 Apr 2020 09:25:11 -0700 Subject: [PATCH] Hide pulldowns on covers shelf snippet stopgap working on #139 --- .../templates/snippets/covers_shelf.html | 2 +- .../templates/snippets/shelve_button.html | 28 +++++++++++-------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/fedireads/templates/snippets/covers_shelf.html b/fedireads/templates/snippets/covers_shelf.html index 5eeb07b5..f12cfcfd 100644 --- a/fedireads/templates/snippets/covers_shelf.html +++ b/fedireads/templates/snippets/covers_shelf.html @@ -15,7 +15,7 @@ - {% include 'snippets/shelve_button.html' with book=book %} + {% include 'snippets/shelve_button.html' with book=book hide_pulldown=True %} {% endfor %} diff --git a/fedireads/templates/snippets/shelve_button.html b/fedireads/templates/snippets/shelve_button.html index 9ff462bc..0762576f 100644 --- a/fedireads/templates/snippets/shelve_button.html +++ b/fedireads/templates/snippets/shelve_button.html @@ -6,22 +6,26 @@ {% csrf_token %} -
+ + +{% if not hide_pulldown %} +
-
    -
    - {% csrf_token %} - - {% for shelf in request.user.shelf_set.all %} -
  • - -
  • - {% endfor %} -
    -
+
    +
    + {% csrf_token %} + + {% for shelf in request.user.shelf_set.all %} +
  • + +
  • + {% endfor %} +
    +
+{% endif %}
{% endif %}