Add server description to index listing

This commit is contained in:
Andrew Cooper
2013-04-13 15:56:14 +01:00
parent 97812a24b4
commit 0162842b97

View File

@@ -42,6 +42,7 @@
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Memory</th>
<th>Addresses</th>
<th>Uptime</th>
@@ -55,6 +56,7 @@
<script type="text/html" id="tpl-host">
<% var mem_usage = 100-Math.round(100*memory.free/memory.total) %>
<td><a href="{$base_path}/servers/<%= id %>"><%= name %></a></td>
<td><%= description || "<i>none</i>" %></td>
<td>
<div class="progress progress-info progress-small" title="<%= mem_usage %>%">
<div class="bar" style="width: <%= mem_usage %>%"></div>