From c21a907cacbbfa8ce8a135362067086063a805f6 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Mon, 22 Sep 2014 22:42:29 +0200 Subject: initial commit of the new template 'oscar' * base.html mostly implemented * stats.html implemented * about.html implemented * most of preferences.html implemented * using bootstrap.js --- searx/templates/oscar/preferences.html | 120 +++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 searx/templates/oscar/preferences.html (limited to 'searx/templates/oscar/preferences.html') diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html new file mode 100644 index 000000000..fa0799b28 --- /dev/null +++ b/searx/templates/oscar/preferences.html @@ -0,0 +1,120 @@ +{% extends "oscar/base.html" %} +{% block content %} +
+ +

{{ _('Preferences') }}

+
+ + + + + +
+
+
+ {{ _('Default categories') }} +

+ {% include 'default/categories.html' %} +

+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
+ +
+ + +
+ {{ _('Find stuff as you type') }} +
+
+ +
+ +
+ {{ _('Change how forms are submited, learn more about request methods') }} +
+
+ +
+ +
+ {{ _('Change searx layout') }} +
+
+
+
+
+
+ {% for (categ,search_engines) in categs %} + {{ _(categ) }} +
+ {% for search_engine in search_engines %} + {% if not search_engine.private %} +
+
{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})
+
+
+ + + +
+
+
+ {% endif %} + {% endfor %} +
+ {% endfor %} +
+
+
+ +

{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }} +
+ {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }} +

+ + +
{{ _('back') }}
+
+
+{% endblock %} -- cgit v1.2.3 From a88ce4bd336e470900d138dcc19af7efaad40573 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Fri, 26 Sep 2014 18:26:46 +0200 Subject: little enhancement of oscar template * improve site-titles * add message which tell you if no data is availabe yet --- searx/templates/oscar/preferences.html | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/templates/oscar/preferences.html') diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index fa0799b28..840e9513a 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -1,4 +1,5 @@ {% extends "oscar/base.html" %} +{% block title %}{{ _('preferences') }} - {% endblock %} {% block content %}
-- cgit v1.2.3 From 8c6e63402ae304fc4aa889911ee20f48ea4d9a09 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Fri, 26 Sep 2014 20:12:46 +0200 Subject: add more tooltips to preferences --- searx/templates/oscar/preferences.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'searx/templates/oscar/preferences.html') diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 840e9513a..d0bbbc820 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -34,6 +34,7 @@ {% endfor %}
+ {{ _('What language do you prefer for search?') }} @@ -46,6 +47,7 @@ {% endfor %} + {{ _('Change the language of the layout') }}
-- cgit v1.2.3 From afcfa04e30af048c63d12bdbe3e281582a917b91 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Fri, 26 Sep 2014 21:18:45 +0200 Subject: oscar template: improve style for check and uncheck of engines --- searx/templates/oscar/preferences.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'searx/templates/oscar/preferences.html') diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index d0bbbc820..38f874e51 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -97,9 +97,9 @@
{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})
- - - + + +
-- cgit v1.2.3 From 5568fbd89d9c0f8c7f6530c6f0826a35d01c83a8 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Fri, 26 Sep 2014 21:43:12 +0200 Subject: oscar template: using tab to seperate engines in preferences --- searx/templates/oscar/preferences.html | 49 +++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 18 deletions(-) (limited to 'searx/templates/oscar/preferences.html') diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 38f874e51..6803a02e5 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -87,27 +87,40 @@
-
- {% for (categ,search_engines) in categs %} - {{ _(categ) }} -
- {% for search_engine in search_engines %} - {% if not search_engine.private %} -
-
{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})
-
-
- - - + + + + + + +
+ {% for (categ,search_engines) in categs %} +
+
+
+ {% for search_engine in search_engines %} + {% if not search_engine.private %} +
+
{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})
+
+
+ + + +
-
- {% endif %} - {% endfor %} + {% endif %} + {% endfor %} +
+
- {% endfor %} - + {% endfor %} + -- cgit v1.2.3 From 25919de6084599c3196622ed1c89648b2c11f78a Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Fri, 26 Sep 2014 22:43:54 +0200 Subject: oscar template: make the categories clickable --- searx/templates/oscar/preferences.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'searx/templates/oscar/preferences.html') diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 6803a02e5..3d66d1963 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -15,15 +15,14 @@
-
- {{ _('Default categories') }} -

- {% include 'default/categories.html' %} -

-
-
+
+ +
+ {% include 'oscar/categories.html' %} +
+
@@ -36,8 +35,6 @@
{{ _('What language do you prefer for search?') }}
- -
@@ -91,7 +88,7 @@ @@ -99,7 +96,7 @@
{% for (categ,search_engines) in categs %} -
+
{% for search_engine in search_engines %} -- cgit v1.2.3 From 25312c53e170deb55bd48029e3b76b87692e1911 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Mon, 3 Nov 2014 22:18:40 +0100 Subject: [enh] add no-js support * image results have url, which can be clicked * preferences full functionable without js --- searx/templates/oscar/preferences.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'searx/templates/oscar/preferences.html') diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 3d66d1963..2868adecc 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -7,12 +7,15 @@
-
-
+
-