diff options
author | Alexandre Flament <alex@al-f.net> | 2017-02-12 15:06:01 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2017-08-06 16:04:21 +0200 |
commit | 10a24bdc2c3870f07ec62dd710841628d325aaf6 (patch) | |
tree | 400b579adb6268092f21ec21621a16c730cfef41 /searx/templates/simple/stats.html | |
parent | 4f6586d8085460c368ad16904685199de630e1c8 (diff) | |
download | searxng-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.html | 25 |
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 }}%"> </div></td> + </tr> + {% endfor %} + </table> +</div> +{% endfor %} +{% endblock %} |