diff options
| author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-19 22:07:19 +0100 |
|---|---|---|
| committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-19 22:07:19 +0100 |
| commit | cd179bbdbbf71431cb61be0f6188ea9507c29027 (patch) | |
| tree | 5c10122262b10d59c0e2ca993abc6bdc88d4a8f0 /searx/templates/courgette/base.html | |
| parent | 71ae75d73e3dd33d719d6eb94e173b02c9b47edd (diff) | |
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.
Diffstat (limited to 'searx/templates/courgette/base.html')
| -rw-r--r-- | searx/templates/courgette/base.html | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ <meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=1" /> <title>{% block title %}{% endblock %}searx</title> <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" type="text/css" media="screen" /> + {% if cookies['courgette-color'] %} + <style type="text/css"> + {% include 'courgette/color.css' %} + </style> + {% endif %} <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}?v=2" /> {% block styles %} {% endblock %} |