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/stats.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 searx/templates/oscar/stats.html (limited to 'searx/templates/oscar/stats.html') 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 %} -- 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/stats.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'searx/templates/oscar/stats.html') diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html index b78caaa93..dee304063 100644 --- a/searx/templates/oscar/stats.html +++ b/searx/templates/oscar/stats.html @@ -1,4 +1,5 @@ {% extends "oscar/base.html" %} +{% block title %}{{ _('stats') }} - {% endblock %} {% block content %}

{{ _('Engine stats') }}

@@ -19,6 +20,14 @@
{% endfor %} + {% if not stat_category %} +
+ +
+ {% endif %} {% endfor %} -- cgit v1.2.3 From d0913f894ad6229962bb728e31da669206ab2c69 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Fri, 26 Sep 2014 20:05:08 +0200 Subject: remove text from alert-info in /stats --- searx/templates/oscar/stats.html | 1 - 1 file changed, 1 deletion(-) (limited to 'searx/templates/oscar/stats.html') diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html index dee304063..bf877c38b 100644 --- a/searx/templates/oscar/stats.html +++ b/searx/templates/oscar/stats.html @@ -23,7 +23,6 @@ {% if not stat_category %}
-- cgit v1.2.3 From 915857105997357f24db86b9fcc6739fd816e98e Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Sat, 27 Sep 2014 11:51:31 +0200 Subject: oscar template: update messages --- searx/templates/oscar/stats.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'searx/templates/oscar/stats.html') diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html index bf877c38b..0fb104210 100644 --- a/searx/templates/oscar/stats.html +++ b/searx/templates/oscar/stats.html @@ -22,9 +22,7 @@ {% endfor %} {% if not stat_category %}
- + {% include 'oscar/messages/no_data_available.html' %}
{% endif %} -- cgit v1.2.3