From 79d75e832fc4bad9fa51ef39aa78eb6e3bda6edc Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Mon, 3 Jan 2011 16:25:28 +0100 Subject: [PATCH] uwsgicc: template beautyfication, thanks to Simone Marcarino --- uwsgicc/templates/index.html | 257 +++++++++++++++++++++++++++++++---- 1 file changed, 230 insertions(+), 27 deletions(-) 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

+ +
+information | options | logs | workers {% if uwsgi.cluster() %}| cluster{% endif %} +
{% with messages = get_flashed_messages() %} {% if messages %}
+
{% 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

+
+
+ + + + + + {% for w in uwsgi.workers() %} - + @@ -42,27 +218,26 @@ {% endfor %}
#pidrequests# count
{{w.id}} {{w.pid}} {{w.requests}}
+
+ + +
{% if uwsgi.cluster() %} -

cluster nodes

-best is {{ uwsgi.cluster_best_node() }}

-
- -
-
- - -
- -
- - -
-
- + +

Cluster nodes

+
+best is {{ uwsgi.cluster_best_node() }}

+
+ + + + {% for ucn in uwsgi.cluster_nodes() %} - + @@ -76,7 +251,7 @@ @@ -89,7 +264,35 @@ {% endfor %} -
hostnamesocket
{{ uwsgi.cluster_node_name(ucn) }} {{ ucn }}
- +
+ + All cluster nodes + +
+ + +
+ + +
+ + +
+ + +
+ +
+ + + +
+
+ back to top +
+ + {% endif %} + + \ No newline at end of file