From 4ff59ddca52f4a08a555766479a81663780ad377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Dahlgren?= Date: Sat, 26 Jul 2014 11:28:05 +0200 Subject: [PATCH] Better looking server status view --- public/js/tpl/servers/info.html | 41 ++++++++++++++++++++++++++++----- public/js/tpl/servers/view.html | 2 +- 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/public/js/tpl/servers/info.html b/public/js/tpl/servers/info.html index bb187b8..91d86ad 100644 --- a/public/js/tpl/servers/info.html +++ b/public/js/tpl/servers/info.html @@ -1,7 +1,36 @@ -<% if (typeof(pid) != "undefined" && pid) { %> - Server is running as <%= pid %> +
+
+ +
+

+ <% if (typeof(pid) != "undefined" && pid) { %> + Online + + + Stop + + <% } else { %> + Offline + + + Start + + <% } %> +

+
+
- Stop -<% } else { %> - Start -<% } %> +
+ +
+

<%- port %>

+
+
+ +
+ +
+

<%- mods %>

+
+
+
diff --git a/public/js/tpl/servers/view.html b/public/js/tpl/servers/view.html index 18f17be..59ea28f 100644 --- a/public/js/tpl/servers/view.html +++ b/public/js/tpl/servers/view.html @@ -1,7 +1,7 @@

<%-title%>

-