From a8b75ca47b14b9df13017f7409367993afb3fb7c Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Fri, 5 Jun 2015 09:07:59 +0200 Subject: [PATCH] [enh] oscar template: using table instead of container-fluid to show cookies --- .../templates/oscar/messages/no_cookies.html | 5 ++++ searx/templates/oscar/preferences.html | 26 ++++++++++--------- 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 searx/templates/oscar/messages/no_cookies.html diff --git a/searx/templates/oscar/messages/no_cookies.html b/searx/templates/oscar/messages/no_cookies.html new file mode 100644 index 000000000..9bebc8ad1 --- /dev/null +++ b/searx/templates/oscar/messages/no_cookies.html @@ -0,0 +1,5 @@ +{% from 'oscar/macros.html' import icon %} + diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 6adb43523..ea36a14b9 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -213,21 +213,23 @@ {{ _('This is the list of cookies and their values searx is storing on your computer.') }}
{{ _('With that list, you can assess searx transparency.') }}

-
-
-
-
-
-
+ {% if cookies %} + + + + + {% for cookie in cookies %} -
-
{{ cookie }}
-
{{ cookies[cookie] }}
-
+ + + + {% endfor %} - - +
{{ _('Cookie name') }}{{ _('Value') }}
{{ cookie }}{{ cookies[cookie] }}
+ {% else %} + {% include 'oscar/messages/no_cookies.html' %} + {% endif %}

{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}