From 156a653c496a1b9cca98600e5c24a191cab3c86b Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 25 Feb 2017 13:28:57 +0100 Subject: [PATCH] Make better usage of big screens in lists --- cps/templates/languages.html | 8 +++++++- cps/templates/list.html | 6 ++++++ cps/templates/user_edit.html | 10 +++++++++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/cps/templates/languages.html b/cps/templates/languages.html index ce1ba359..eba7af04 100644 --- a/cps/templates/languages.html +++ b/cps/templates/languages.html @@ -2,11 +2,17 @@ {% block body %}

{{title}}

+
{% for lang in languages %} + {% if loop.index0 == (loop.length/2)|int and loop.length > 20 %} +
+
+ {% endif %}
{{lang_counter[loop.index0].bookcount}}
{% endfor %} -
+
+ {% endblock %} diff --git a/cps/templates/list.html b/cps/templates/list.html index d424d495..0a63b139 100644 --- a/cps/templates/list.html +++ b/cps/templates/list.html @@ -2,11 +2,17 @@ {% block body %}

{{title}}

+
{% for entry in entries %} + {% if loop.index0 == (loop.length/2)|int and loop.length > 20 %} +
+
+ {% endif %}
{{entry.count}}
{% endfor %}
+
{% endblock %} diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index b9cff3eb..02bf31d6 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -40,6 +40,8 @@ {% endfor %} +
+
@@ -72,7 +74,8 @@
- +
+
{% if g.user and g.user.role_admin() and not profile %} {% if not content.role_anonymous() %}
@@ -106,10 +109,15 @@
{% endif %} +
+
{% if not profile %} {{_('Back')}} +
{% endif %} + + {% if downloads %}