From a28cfd4887813ec4343516c57376574a3f6b7427 Mon Sep 17 00:00:00 2001 From: Thomas LEBEAU Date: Mon, 18 Aug 2014 10:44:46 +0200 Subject: [new] theme courgette --- searx/templates/courgette/about.html | 66 ++++++++++++++ searx/templates/courgette/base.html | 32 +++++++ searx/templates/courgette/categories.html | 7 ++ searx/templates/courgette/github_ribbon.html | 3 + searx/templates/courgette/index.html | 12 +++ searx/templates/courgette/opensearch.xml | 27 ++++++ .../courgette/opensearch_response_rss.xml | 23 +++++ searx/templates/courgette/preferences.html | 101 +++++++++++++++++++++ .../courgette/result_templates/default.html | 13 +++ .../courgette/result_templates/images.html | 6 ++ .../courgette/result_templates/torrent.html | 7 ++ .../courgette/result_templates/videos.html | 12 +++ searx/templates/courgette/results.html | 79 ++++++++++++++++ searx/templates/courgette/search.html | 7 ++ searx/templates/courgette/stats.html | 22 +++++ 15 files changed, 417 insertions(+) create mode 100644 searx/templates/courgette/about.html create mode 100644 searx/templates/courgette/base.html create mode 100644 searx/templates/courgette/categories.html create mode 100644 searx/templates/courgette/github_ribbon.html create mode 100644 searx/templates/courgette/index.html create mode 100644 searx/templates/courgette/opensearch.xml create mode 100644 searx/templates/courgette/opensearch_response_rss.xml create mode 100644 searx/templates/courgette/preferences.html create mode 100644 searx/templates/courgette/result_templates/default.html create mode 100644 searx/templates/courgette/result_templates/images.html create mode 100644 searx/templates/courgette/result_templates/torrent.html create mode 100644 searx/templates/courgette/result_templates/videos.html create mode 100644 searx/templates/courgette/results.html create mode 100644 searx/templates/courgette/search.html create mode 100644 searx/templates/courgette/stats.html (limited to 'searx/templates/courgette') diff --git a/searx/templates/courgette/about.html b/searx/templates/courgette/about.html new file mode 100644 index 000000000..19aba1905 --- /dev/null +++ b/searx/templates/courgette/about.html @@ -0,0 +1,66 @@ +{% extends 'default/base.html' %} +{% block content %} +{% include 'default/github_ribbon.html' %} +
+

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/courgette/base.html b/searx/templates/courgette/base.html new file mode 100644 index 000000000..da5ae905f --- /dev/null +++ b/searx/templates/courgette/base.html @@ -0,0 +1,32 @@ + + + + + + + + {% block title %}{% endblock %}searx + + + {% block styles %} + {% endblock %} + {% block head %} + + {% endblock %} + + + +
+{% block content %} +{% endblock %} +{% if autocomplete %} + + +{% endif %} + +
+ + diff --git a/searx/templates/courgette/categories.html b/searx/templates/courgette/categories.html new file mode 100644 index 000000000..57e63c85d --- /dev/null +++ b/searx/templates/courgette/categories.html @@ -0,0 +1,7 @@ +
+{% for category in categories %} +
+ +
+{% endfor %} +
diff --git a/searx/templates/courgette/github_ribbon.html b/searx/templates/courgette/github_ribbon.html new file mode 100644 index 000000000..bdd9cf180 --- /dev/null +++ b/searx/templates/courgette/github_ribbon.html @@ -0,0 +1,3 @@ + + Fork me on GitHub + diff --git a/searx/templates/courgette/index.html b/searx/templates/courgette/index.html new file mode 100644 index 000000000..b4f55608b --- /dev/null +++ b/searx/templates/courgette/index.html @@ -0,0 +1,12 @@ +{% extends "default/base.html" %} +{% block content %} +{% include 'default/github_ribbon.html' %} +
+

searx

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

+ {{ _('about') }} + {{ _('preferences') }} +

+
+{% endblock %} diff --git a/searx/templates/courgette/opensearch.xml b/searx/templates/courgette/opensearch.xml new file mode 100644 index 000000000..f39283f99 --- /dev/null +++ b/searx/templates/courgette/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/courgette/opensearch_response_rss.xml b/searx/templates/courgette/opensearch_response_rss.xml new file mode 100644 index 000000000..5673eb2e1 --- /dev/null +++ b/searx/templates/courgette/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/courgette/preferences.html b/searx/templates/courgette/preferences.html new file mode 100644 index 000000000..7d35de7c3 --- /dev/null +++ b/searx/templates/courgette/preferences.html @@ -0,0 +1,101 @@ +{% extends "default/base.html" %} +{% block head %} {% endblock %} +{% block content %} +
+

{{ _('Preferences') }}

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

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

+
+
+ {{ _('Search language') }} +

+ +

+
+
+ {{ _('Interface language') }} +

+ +

+
+
+ {{ _('Autocomplete') }} +

+ +

+
+
+ {{ _('Method') }} +

+ +

+
+
+ {{ _('Themes') }} +

+ +

+
+
+ {{ _('Currently used search engines') }} + + + + + + + + {% for (categ,search_engines) in categs %} + {% for search_engine in search_engines %} + + {% if not search_engine.private %} + + + + + + {% endif %} + {% endfor %} + {% endfor %} +
{{ _('Engine name') }}{{ _('Category') }}{{ _('Allow') }} / {{ _('Block') }}
{{ search_engine.name }} ({{ shortcuts[search_engine.name] }}){{ _(categ) }} + + + +
+
+

{{ _('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.") }} +

+ + + +
+
+{% endblock %} diff --git a/searx/templates/courgette/result_templates/default.html b/searx/templates/courgette/result_templates/default.html new file mode 100644 index 000000000..734f9066c --- /dev/null +++ b/searx/templates/courgette/result_templates/default.html @@ -0,0 +1,13 @@ +
+ + {% if result['favicon'] %} + + {% endif %} + +
+

{{ result.title|safe }}

+ {% if result.publishedDate %}

{{ result.publishedDate }}

{% endif %} +

{% if result.content %}{{ result.content|safe }}
{% endif %}

+

{{ result.pretty_url }}

+
+
diff --git a/searx/templates/courgette/result_templates/images.html b/searx/templates/courgette/result_templates/images.html new file mode 100644 index 000000000..1f15ff2bb --- /dev/null +++ b/searx/templates/courgette/result_templates/images.html @@ -0,0 +1,6 @@ +
+

+ + original context +

+
diff --git a/searx/templates/courgette/result_templates/torrent.html b/searx/templates/courgette/result_templates/torrent.html new file mode 100644 index 000000000..6c62793a5 --- /dev/null +++ b/searx/templates/courgette/result_templates/torrent.html @@ -0,0 +1,7 @@ +
+

{{ result.title|safe }}

+ {% if result.content %}

{{ result.content|safe }}

{% endif %} +

Seed: {{ result.seed }}, Leech: {{ result.leech }}

+

magnet link

+

{{ result.pretty_url }}

+
diff --git a/searx/templates/courgette/result_templates/videos.html b/searx/templates/courgette/result_templates/videos.html new file mode 100644 index 000000000..8ceb0b180 --- /dev/null +++ b/searx/templates/courgette/result_templates/videos.html @@ -0,0 +1,12 @@ +
+ {% if result['favicon'] %} + + {% endif %} + +

+

{{ result.title|safe }}

+ {% if result.publishedDate %}

{{ result.publishedDate }}

{% endif %} +  {{ result.title }} +

{{ result.url }}

+

+
diff --git a/searx/templates/courgette/results.html b/searx/templates/courgette/results.html new file mode 100644 index 000000000..d0b53b48a --- /dev/null +++ b/searx/templates/courgette/results.html @@ -0,0 +1,79 @@ +{% extends "default/base.html" %} +{% block title %}{{ q }} - {% endblock %} +{% block content %} +
preferences
+ +
+ + + {% if suggestions %} +
{{ _('Suggestions') }} + {% for suggestion in suggestions %} +
+ + +
+ {% endfor %} +
+ {% endif %} + + {% for result in results %} + {% if result['template'] %} + {% include 'default/result_templates/'+result['template'] %} + {% else %} + {% include 'default/result_templates/default.html' %} + {% endif %} + {% endfor %} + + {% if paging %} + + {% endif %} +
+{% endblock %} diff --git a/searx/templates/courgette/search.html b/searx/templates/courgette/search.html new file mode 100644 index 000000000..8a9965582 --- /dev/null +++ b/searx/templates/courgette/search.html @@ -0,0 +1,7 @@ +
+
+ + +
+ {% include 'default/categories.html' %} +
diff --git a/searx/templates/courgette/stats.html b/searx/templates/courgette/stats.html new file mode 100644 index 000000000..70fe98ac7 --- /dev/null +++ b/searx/templates/courgette/stats.html @@ -0,0 +1,22 @@ +{% extends "default/base.html" %} +{% block head %} {% endblock %} +{% block content %} +

{{ _('Engine stats') }}

+ +{% for stat_name,stat_category in stats %} +
+ + + + + {% for engine in stat_category %} + + + + + + {% endfor %} +
{{ stat_name }}
{{ engine.name }}{{ '%.02f'|format(engine.avg) }}
 
+
+{% endfor %} +{% endblock %} -- cgit v1.2.3-54-g00ecf