<th>Server name</th>
<th>Host</th>
<th class="w-1">Status</th>
+ <th class="w-1">Uptime</th>
+ <th class="w-1">Version</th>
<th>Configuration ID</th>
</tr>
</thead>
$.each(servers, function (key, val) {
var row_class = "danger";
var glyph_status = "fas fa-times";
+ var version = "???";
+ var uptime = "???";
var short_id = "???";
if (!("config_id" in val.data)) {
val.data.config_id = "";
if (val.status) {
row_class = "success";
glyph_status = "fas fa-check";
+ uptime = msToTime(val.data.uptime);
+ version = val.data.version;
short_id = val.data.config_id.substring(0, 8);
}
"<td>" + key + "</td>" +
"<td>" + val.host + "</td>" +
"<td class=\"text-center\"><span class=\"icon\"><i class=\"" + glyph_status + "\"></i></span></td>" +
+ '<td class="text-right">' + uptime + "</td>" +
+ "<td>" + version + "</td>" +
"<td>" + short_id + "</td></tr>");
$("#selSrv").append($("<option value=\"" + key + "\">" + key + "</option>"));