Browse Source

[enh] template for stats

asciimoo 11 years ago
parent
commit
3c3d9b0467
1 changed files with 16 additions and 0 deletions
  1. 16 0
      searx/templates/stats.html

+ 16 - 0
searx/templates/stats.html

@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+{% block head %} {% endblock %}
+{% block content %}
+<h2>Engine stats</h2>
+
+{% for engine,engine_stats in stats.items() %}
+<div>
+    <h3>{{ engine }}</h3>
+    <ul>
+        {% for statname,value in engine_stats.items() %}
+        <li>{{ statname }}: {{ value }}</li>
+        {% endfor %}
+    </ul>
+</div>
+{% endfor %}
+{% endblock %}