From 36030b559c31a467b74119c1b8d1b6261109cd03 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Fri, 11 Jan 2019 08:36:28 +0100 Subject: [PATCH] Choosing Theme is now a global setting --- cps/templates/admin.html | 4 ++-- cps/templates/config_view_edit.html | 7 +++++++ cps/templates/http_error.html | 2 +- cps/templates/index.html | 2 +- cps/templates/layout.html | 4 ++-- cps/templates/list.html | 2 +- cps/templates/user_edit.html | 8 -------- cps/ub.py | 22 +++++++++++----------- cps/web.py | 9 +++++---- 9 files changed, 30 insertions(+), 30 deletions(-) diff --git a/cps/templates/admin.html b/cps/templates/admin.html index b7d23db1..1d038393 100644 --- a/cps/templates/admin.html +++ b/cps/templates/admin.html @@ -144,7 +144,7 @@ +
+ + +
diff --git a/cps/templates/http_error.html b/cps/templates/http_error.html index 8078d32c..3f7f73f7 100644 --- a/cps/templates/http_error.html +++ b/cps/templates/http_error.html @@ -12,7 +12,7 @@ - {% if g.user.get_theme == 1 %} + {% if g.current_theme == 1 %} {% endif %} diff --git a/cps/templates/index.html b/cps/templates/index.html index 29b9faf6..1df6e62e 100755 --- a/cps/templates/index.html +++ b/cps/templates/index.html @@ -47,7 +47,7 @@
{% endif %}
-

{{title}}

+

{{_(title)}}

{% if entries[0] %} {% for entry in entries %} diff --git a/cps/templates/layout.html b/cps/templates/layout.html index 558cad1a..5a340672 100644 --- a/cps/templates/layout.html +++ b/cps/templates/layout.html @@ -12,7 +12,7 @@ - {% if g.user.get_theme == 1 %} + {% if g.current_theme == 1 %} {% endif %} @@ -240,7 +240,7 @@ - {% if g.user.get_theme == 1 %} + {% if g.current_theme == 1 %} diff --git a/cps/templates/list.html b/cps/templates/list.html index 483738e7..b12a068b 100644 --- a/cps/templates/list.html +++ b/cps/templates/list.html @@ -1,6 +1,6 @@ {% extends "layout.html" %} {% block body %} -

{{title}}

+

{{_(title)}}

{% for entry in entries %} diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index 48630cea..f43cc36f 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -35,14 +35,6 @@ {% endfor %}
-
- - -
-