From 570a012a21dbba4bfb40622f586fdd41c1b9f221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Dahlgren?= Date: Sat, 26 Jul 2014 11:07:55 +0200 Subject: [PATCH] Show server status in list --- public/js/tpl/servers/list.html | 3 ++- public/js/tpl/servers/list_item.html | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public/js/tpl/servers/list.html b/public/js/tpl/servers/list.html index e360c3a..b931943 100644 --- a/public/js/tpl/servers/list.html +++ b/public/js/tpl/servers/list.html @@ -1,7 +1,8 @@ - + + diff --git a/public/js/tpl/servers/list_item.html b/public/js/tpl/servers/list_item.html index 111881e..3e12722 100644 --- a/public/js/tpl/servers/list_item.html +++ b/public/js/tpl/servers/list_item.html @@ -1,3 +1,10 @@ +
ServerStatusName
+ <% if (typeof(pid) != "undefined" && pid) { %> + Online + <% } else { %> + Offline + <% } %> + <%-title%>