summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-27 02:59:32 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-27 02:59:32 +0200
commitafe767d8e935e33a8aafd0c2a8fe3686a7d1a248 (patch)
tree8d310c1946e64295c405d27e127b6c39832135a9 /searx/templates
parent4f4ec44bb373a6aff0c723943544f44907519dca (diff)
[enh] stat bar graphs
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/stats.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/templates/stats.html b/searx/templates/stats.html
index 66623629c..933616e32 100644
--- a/searx/templates/stats.html
+++ b/searx/templates/stats.html
@@ -4,7 +4,7 @@
<h2>Engine stats</h2>
{% for stat_name,stat_category in stats %}
-<div>
+<div class="left">
<table>
<tr colspan="3">
<th>{{ stat_name }}</th>
@@ -12,8 +12,8 @@
{% for engine in stat_category %}
<tr>
<td>{{ engine.name }}</td>
- <td>{{ engine.percentage }}</td>
- <td>{{ engine.avg }}</td>
+ <td>{{ '%.02f'|format(engine.avg) }}</td>
+ <td class="percentage"><div style="width: {{ engine.percentage }}%">&nbsp;</div></td>
</tr>
{% endfor %}
</table>