diff --git a/searx/static/oscar/css/bootstrap-theme.min.css b/searx/static/oscar/css/bootstrap-theme.min.css new file mode 100644 index 000000000..2e97597c8 Binary files /dev/null and b/searx/static/oscar/css/bootstrap-theme.min.css differ diff --git a/searx/static/oscar/css/bootstrap.min.css b/searx/static/oscar/css/bootstrap.min.css new file mode 100644 index 000000000..a9f35ceed Binary files /dev/null and b/searx/static/oscar/css/bootstrap.min.css differ diff --git a/searx/static/oscar/css/oscar.css b/searx/static/oscar/css/oscar.css new file mode 100644 index 000000000..6ca390679 --- /dev/null +++ b/searx/static/oscar/css/oscar.css @@ -0,0 +1,19 @@ +/* Sticky footer styles +-------------------------------------------------- */ + +html { + position: relative; + min-height: 100%; +} +body { + /* Margin bottom by footer height */ + margin-bottom: 80px; +} + +.footer { + position: absolute; + bottom: 0; + width: 100%; + /* Set the fixed height of the footer here */ + height: 40px; +} diff --git a/searx/static/oscar/fonts/glyphicons-halflings-regular.eot b/searx/static/oscar/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 000000000..4a4ca865d Binary files /dev/null and b/searx/static/oscar/fonts/glyphicons-halflings-regular.eot differ diff --git a/searx/static/oscar/fonts/glyphicons-halflings-regular.svg b/searx/static/oscar/fonts/glyphicons-halflings-regular.svg new file mode 100644 index 000000000..e3e2dc739 Binary files /dev/null and b/searx/static/oscar/fonts/glyphicons-halflings-regular.svg differ diff --git a/searx/static/oscar/fonts/glyphicons-halflings-regular.ttf b/searx/static/oscar/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 000000000..67fa00bf8 Binary files /dev/null and b/searx/static/oscar/fonts/glyphicons-halflings-regular.ttf differ diff --git a/searx/static/oscar/fonts/glyphicons-halflings-regular.woff b/searx/static/oscar/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 000000000..8c54182aa Binary files /dev/null and b/searx/static/oscar/fonts/glyphicons-halflings-regular.woff differ diff --git a/searx/static/oscar/img/favicon.png b/searx/static/oscar/img/favicon.png new file mode 100644 index 000000000..cefbac496 Binary files /dev/null and b/searx/static/oscar/img/favicon.png differ diff --git a/searx/static/oscar/img/icon_soundcloud.ico b/searx/static/oscar/img/icon_soundcloud.ico new file mode 100644 index 000000000..4130bea1b Binary files /dev/null and b/searx/static/oscar/img/icon_soundcloud.ico differ diff --git a/searx/static/oscar/img/icon_stackoverflow.ico b/searx/static/oscar/img/icon_stackoverflow.ico new file mode 100644 index 000000000..b2242bc6c Binary files /dev/null and b/searx/static/oscar/img/icon_stackoverflow.ico differ diff --git a/searx/static/oscar/img/icon_twitter.ico b/searx/static/oscar/img/icon_twitter.ico new file mode 100644 index 000000000..b4a71699a Binary files /dev/null and b/searx/static/oscar/img/icon_twitter.ico differ diff --git a/searx/static/oscar/img/icon_vimeo.ico b/searx/static/oscar/img/icon_vimeo.ico new file mode 100644 index 000000000..4fe4336da Binary files /dev/null and b/searx/static/oscar/img/icon_vimeo.ico differ diff --git a/searx/static/oscar/img/icon_wikipedia.ico b/searx/static/oscar/img/icon_wikipedia.ico new file mode 100644 index 000000000..911fa76f6 Binary files /dev/null and b/searx/static/oscar/img/icon_wikipedia.ico differ diff --git a/searx/static/oscar/img/icon_youtube.ico b/searx/static/oscar/img/icon_youtube.ico new file mode 100644 index 000000000..977887dbb Binary files /dev/null and b/searx/static/oscar/img/icon_youtube.ico differ diff --git a/searx/static/oscar/img/searx.png b/searx/static/oscar/img/searx.png new file mode 100644 index 000000000..e162da502 Binary files /dev/null and b/searx/static/oscar/img/searx.png differ diff --git a/searx/static/oscar/js/bootstrap.min.js b/searx/static/oscar/js/bootstrap.min.js new file mode 100644 index 000000000..7c1561a8b Binary files /dev/null and b/searx/static/oscar/js/bootstrap.min.js differ diff --git a/searx/static/oscar/js/html5shiv.min.js b/searx/static/oscar/js/html5shiv.min.js new file mode 100644 index 000000000..d4c731ad5 Binary files /dev/null and b/searx/static/oscar/js/html5shiv.min.js differ diff --git a/searx/static/oscar/js/jquery-1.11.1.min.js b/searx/static/oscar/js/jquery-1.11.1.min.js new file mode 100644 index 000000000..ab28a2472 Binary files /dev/null and b/searx/static/oscar/js/jquery-1.11.1.min.js differ diff --git a/searx/static/oscar/js/respond.min.js b/searx/static/oscar/js/respond.min.js new file mode 100644 index 000000000..80a7b69dc Binary files /dev/null and b/searx/static/oscar/js/respond.min.js differ diff --git a/searx/templates/oscar/about.html b/searx/templates/oscar/about.html new file mode 100644 index 000000000..c0353e29f --- /dev/null +++ b/searx/templates/oscar/about.html @@ -0,0 +1,66 @@ +{% extends "oscar/base.html" %} +{% block site_alert_warning_nojs %} {% endblock %} +{% block content %} +
+

About searx

+ +

Searx is a metasearch engine, aggregating the results of other search engines while not storing information about its users. +

+

Why use Searx?

+ +

If you do care about privacy, want to be a conscious user, or otherwise believe + in digital freedom, make Searx your default search engine or run it on your own server

+ +

Technical details - How does it work?

+ +

Searx is a metasearch engine, +inspired by the seeks project.
+It provides basic privacy by mixing your queries with searches on other platforms without storing search data. Queries are made using a POST request on every browser (except chrome*). Therefore they show up in neither our logs, nor your url history. In case of Chrome* users there is an exception, Searx uses the search bar to perform GET requests.
+Searx can be added to your browser's search bar; moreover, it can be set as the default search engine. +

+ +

How can I make it my own?

+ +

Searx appreciates your concern regarding logs, so take the code and run it yourself!
Add your Searx to this list to help other people reclaim their privacy and make the Internet freer! +
The more decentralized the Internet, is the more freedom we have!

+ + +

More about searx

+ + + + +
+ +

FAQ

+ +

How to add to firefox?

+

Install searx as a search engine on any version of Firefox! (javascript required)

+ +

Developer FAQ

+ +

New engines?

+ +

Don't forget to restart searx after config edit!

+ +

Installation/WSGI support?

+

See the installation and setup wiki page

+ +

How to debug engines?

+

Stats page contains some useful data about the engines used.

+ +
+{% endblock %} diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html new file mode 100644 index 000000000..c15d8f83c --- /dev/null +++ b/searx/templates/oscar/base.html @@ -0,0 +1,65 @@ + + + + + + + + + {% block title %}{% endblock %}searx + + + + + + + + + + {% block styles %} + {% endblock %} + {% block head %} + {% endblock %} + + + + + + +
+ {% include 'oscar/navbar.html' %} + + {% block site_alert_error %} + {% endblock %} + {% block site_alert_warning %} + {% endblock %} + {% block site_alert_warning_nojs %} + + {% endblock %} + + {% block content %} + {% endblock %} + +
+ + + + + diff --git a/searx/templates/oscar/index.html b/searx/templates/oscar/index.html new file mode 100644 index 000000000..0c9a73060 --- /dev/null +++ b/searx/templates/oscar/index.html @@ -0,0 +1,6 @@ +{% extends "oscar/base.html" %} +{% block content %} +
+

searx

+
+{% endblock %} diff --git a/searx/templates/oscar/navbar.html b/searx/templates/oscar/navbar.html new file mode 100644 index 000000000..8262fc949 --- /dev/null +++ b/searx/templates/oscar/navbar.html @@ -0,0 +1,21 @@ + + diff --git a/searx/templates/oscar/opensearch.xml b/searx/templates/oscar/opensearch.xml new file mode 100644 index 000000000..f39283f99 --- /dev/null +++ b/searx/templates/oscar/opensearch.xml @@ -0,0 +1,27 @@ + + + searx + Search searx + UTF-8 + searx metasearch + {% if opensearch_method == 'get' %} + + {% if autocomplete %} + + + + + {% endif %} + {% else %} + + + + {% if autocomplete %} + + + + + + {% endif %} + {% endif %} + diff --git a/searx/templates/oscar/opensearch_response_rss.xml b/searx/templates/oscar/opensearch_response_rss.xml new file mode 100644 index 000000000..5673eb2e1 --- /dev/null +++ b/searx/templates/oscar/opensearch_response_rss.xml @@ -0,0 +1,23 @@ + + + + Searx search: {{ q }} + {{ base_url }}?q={{ q }} + Search results for "{{ q }}" - searx + {{ number_of_results }} + 1 + {{ number_of_results }} + + 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 %} diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html new file mode 100644 index 000000000..b78caaa93 --- /dev/null +++ b/searx/templates/oscar/stats.html @@ -0,0 +1,27 @@ +{% extends "oscar/base.html" %} +{% block content %} +
+

{{ _('Engine stats') }}

+
+ {% for stat_name,stat_category in stats %} +
+

{{ stat_name }}

+
+ {% for engine in stat_category %} +
+
{{ engine.name }}
+
+
+
+ {{ '%.02f'|format(engine.avg) }} +
+
+
+
+ {% endfor %} +
+
+ {% endfor %} +
+
+{% endblock %} diff --git a/searx/webapp.py b/searx/webapp.py index 74f8fad7e..90451bf2a 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -174,6 +174,8 @@ def render(template_name, override_theme=None, **kwargs): kwargs['url_for'] = url_for_theme kwargs['theme'] = get_current_theme_name(override=override_theme) + + kwargs['template_name'] = template_name return render_template( '{}/{}'.format(kwargs['theme'], template_name), **kwargs)