Show server status in list

This commit is contained in:
Björn Dahlgren 2014-07-26 11:07:55 +02:00
parent 38c93ae806
commit 570a012a21
2 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,8 @@
<table class="table table-striped">
<thead>
<tr>
<th>Server</th>
<th>Status</th>
<th>Name</th>
<th></th>
</tr>
</thead>

View File

@ -1,3 +1,10 @@
<td>
<% if (typeof(pid) != "undefined" && pid) { %>
<span class="label label-success">Online</span>
<% } else { %>
<span class="label label-default">Offline</span>
<% } %>
</td>
<td style="width: 100%;">
<a href='#servers/<%-id%>'><%-title%></a>
</td>