From cd179bbdbbf71431cb61be0f6188ea9507c29027 Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Mon, 19 Jan 2015 22:07:19 +0100 Subject: Modify theme Courgette to add colors Two colors are needed so I use a space in the cookie and a split in jinja to "encode" and "decode" them. We should enforce that each theme if they must use a cookie, prefix its name with the name of the theme. The color proposed here are based on bootstrap. We could use others. --- searx/templates/courgette/base.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'searx/templates/courgette/base.html') diff --git a/searx/templates/courgette/base.html b/searx/templates/courgette/base.html index 89e9ea8bd..08f9bfa73 100644 --- a/searx/templates/courgette/base.html +++ b/searx/templates/courgette/base.html @@ -8,6 +8,11 @@ {% block title %}{% endblock %}searx + {% if cookies['courgette-color'] %} + + {% endif %} {% block styles %} {% endblock %} -- cgit v1.2.3