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 %} + +