summaryrefslogtreecommitdiff
path: root/searx/templates/simple/stats.html
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2017-02-12 15:06:01 +0100
committerAlexandre Flament <alex@al-f.net>2017-08-06 16:04:21 +0200
commit10a24bdc2c3870f07ec62dd710841628d325aaf6 (patch)
tree400b579adb6268092f21ec21621a16c730cfef41 /searx/templates/simple/stats.html
parent4f6586d8085460c368ad16904685199de630e1c8 (diff)
downloadsearxng-10a24bdc2c3870f07ec62dd710841628d325aaf6.tar.gz
searxng-10a24bdc2c3870f07ec62dd710841628d325aaf6.zip
[enh] add simple theme (WIP)
Diffstat (limited to 'searx/templates/simple/stats.html')
-rw-r--r--searx/templates/simple/stats.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/searx/templates/simple/stats.html b/searx/templates/simple/stats.html
new file mode 100644
index 000000000..462ab4aa9
--- /dev/null
+++ b/searx/templates/simple/stats.html
@@ -0,0 +1,25 @@
+{% extends "simple/base.html" %}
+{% block head %} {% endblock %}
+{% block content %}
+
+<a href="{{ url_for('index') }}"><h1><span>searx</span></h1></a>
+
+<h2>{{ _('Engine stats') }}</h2>
+
+{% for stat_name,stat_category in stats %}
+<div class="left">
+ <table>
+ <tr colspan="3">
+ <th>{{ stat_name }}</th>
+ </tr>
+ {% for engine in stat_category %}
+ <tr>
+ <td>{{ engine.name }}</td>
+ <td>{{ '%.02f'|format(engine.avg) }}</td>
+ <td class="percentage"><div style="width: {{ engine.percentage }}%">&nbsp;</div></td>
+ </tr>
+ {% endfor %}
+ </table>
+</div>
+{% endfor %}
+{% endblock %}