From 6dfa171b4efb1cbfdb5151f438c37a46995578c1 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 27 Sep 2020 16:00:17 +0200 Subject: [PATCH] Added id's for testing moved downloaded books section --- cps/constants.py | 3 +- cps/templates/grid.html | 2 +- cps/templates/list.html | 2 +- cps/templates/user_edit.html | 27 ++++++++--- cps/ub.py | 3 ++ cps/web.py | 89 +++++++++++++++++++++++++++--------- 6 files changed, 94 insertions(+), 32 deletions(-) diff --git a/cps/constants.py b/cps/constants.py index 380153f1..89810e90 100644 --- a/cps/constants.py +++ b/cps/constants.py @@ -81,7 +81,8 @@ SIDEBAR_PUBLISHER = 1 << 12 SIDEBAR_RATING = 1 << 13 SIDEBAR_FORMAT = 1 << 14 SIDEBAR_ARCHIVED = 1 << 15 -SIDEBAR_LIST = 1 << 16 +SIDEBAR_DOWNLOAD = 1 << 16 +SIDEBAR_LIST = 1 << 17 ADMIN_USER_ROLES = sum(r for r in ALL_ROLES.values()) & ~ROLE_ANONYMOUS ADMIN_USER_SIDEBAR = (SIDEBAR_LIST << 1) - 1 diff --git a/cps/templates/grid.html b/cps/templates/grid.html index 5c94b1ea..4aa0b7df 100644 --- a/cps/templates/grid.html +++ b/cps/templates/grid.html @@ -19,7 +19,7 @@ {% endfor %} - + {% if entries[0] %} diff --git a/cps/templates/list.html b/cps/templates/list.html index 44fb4e34..53a712d1 100644 --- a/cps/templates/list.html +++ b/cps/templates/list.html @@ -20,7 +20,7 @@ {% if data == "series" %} - + {% endif %}
diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index 2648dd7c..44586f38 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -140,20 +140,32 @@ {% endif %}
- + {% if downloads %} -
+
+

{{_('Recent Downloads')}}

+
{% for entry in downloads %} -
- - ... + - {% endif %} + {% endfor %} +
+
+ {% endif %} + +