diff --git a/uwsgicc/templates/index.html b/uwsgicc/templates/index.html
index cb47d8a6..7958e52a 100644
--- a/uwsgicc/templates/index.html
+++ b/uwsgicc/templates/index.html
@@ -1,15 +1,161 @@
-
uWSGI {{uwsgi.version}} Control Center
+
+
+
+
+uWSGI {{uwsgi.version}} Control Center
+
+
+
+
+
+uWSGI {{uwsgi.version}} Control Center
+
+
{% with messages = get_flashed_messages() %}
{% if messages %}
+
{% for message in messages %}
- {{ message }}
{% endfor %}
+
{% endif %}
{% endwith %}
+
+Information
+
nodename: {{uwsgi.cluster_node_name()}}
mode: {{uwsgi.mode}}
loop: {{uwsgi.loop}}
@@ -19,22 +165,52 @@
masterpid: {{uwsgi.masterpid()}}
cluster: {{uwsgi.cluster()}}
-
options
+
+
+
+
+
+
+Options
+
{% for k in uwsgi.opt.keys() %}
- {{k}}={{uwsgi.opt[k]}}
+
{{k}}: {{uwsgi.opt[k]}}
{% endfor %}
-
+
+
+
+
+
+Logs
+
-
-
workers
-
+
+
+
+
+
+Workers
+
+
+
+ | # |
+ pid |
+ requests |
+ # count |
+
{% for w in uwsgi.workers() %}
-
+
| {{w.id}} |
{{w.pid}} |
{{w.requests}} |
@@ -42,27 +218,26 @@
{% endfor %}
+
+
+
+
{% if uwsgi.cluster() %}
-cluster nodes
-best is {{ uwsgi.cluster_best_node() }}
-
-
-
-
-
-
+
+Cluster nodes
+
+
best is {{ uwsgi.cluster_best_node() }}
+
+
+ | hostname |
+ socket |
+
{% for ucn in uwsgi.cluster_nodes() %}
-
+
| {{ uwsgi.cluster_node_name(ucn) }} |
{{ ucn }} |
@@ -89,7 +264,35 @@
{% endfor %}
-
+
+ | All cluster nodes |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
{% endif %}
+
+
\ No newline at end of file