mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:10:15 +02:00
use panels on main domain-server page
This commit is contained in:
parent
e8c3fa3cf1
commit
6bc81e6ff4
1 changed files with 71 additions and 56 deletions
|
@ -1,63 +1,78 @@
|
||||||
<!--#include file="header.html"-->
|
<!--#include file="header.html"-->
|
||||||
<div id="nodes-lead" class="table-lead"><h3>Nodes</h3><div class="lead-line"></div></div>
|
<div class="col-md-10 col-md-offset-1">
|
||||||
<div style="clear:both;"></div>
|
<div class="panel panel-default">
|
||||||
<button type="button" class="btn btn-danger" id="kill-all-btn">
|
<div class="panel-heading">
|
||||||
<span class="glyphicon glyphicon-fire"></span> Kill all Nodes
|
<h3 class="panel-title">Nodes</h3>
|
||||||
</button>
|
</div>
|
||||||
<table id="nodes-table" class="table table-striped">
|
<div class="panel-body">
|
||||||
<thead>
|
<table id="nodes-table" class="table table-striped">
|
||||||
<tr>
|
<thead>
|
||||||
<th>Type</th>
|
|
||||||
<th>UUID</th>
|
|
||||||
<th>Pool</th>
|
|
||||||
<th>Username</th>
|
|
||||||
<th>Public</th>
|
|
||||||
<th>Local</th>
|
|
||||||
<th>Uptime (s)</th>
|
|
||||||
<th>Pending Credits</th>
|
|
||||||
<th>Kill?</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<script id="nodes-template" type="text/template">
|
|
||||||
<% _.each(nodes, function(node, node_index){ %>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><%- node.type %></td>
|
<th>Type</th>
|
||||||
<td><a href="stats/?uuid=<%- node.uuid %>"><%- node.uuid %></a></td>
|
<th>UUID</th>
|
||||||
<td><%- node.pool %></td>
|
<th>Pool</th>
|
||||||
<td><%- node.username %></td>
|
<th>Username</th>
|
||||||
<td><%- node.public.ip %><span class='port'>:<%- node.public.port %></span></td>
|
<th>Public</th>
|
||||||
<td><%- node.local.ip %><span class='port'>:<%- node.local.port %></span></td>
|
<th>Local</th>
|
||||||
<td><%- ((Date.now() - node.wake_timestamp) / 1000).toLocaleString() %></td>
|
<th>Uptime (s)</th>
|
||||||
<td><%- (typeof node.pending_credits == 'number' ? node.pending_credits.toLocaleString() : 'N/A') %></td>
|
<th>Pending Credits</th>
|
||||||
<td><span class='glyphicon glyphicon-remove' data-uuid="<%- node.uuid %>"></span></td>
|
<th>Kill?</th>
|
||||||
</tr>
|
</tr>
|
||||||
<% }); %>
|
</thead>
|
||||||
</script>
|
<tbody>
|
||||||
</table>
|
<script id="nodes-template" type="text/template">
|
||||||
|
<% _.each(nodes, function(node, node_index){ %>
|
||||||
|
<tr>
|
||||||
|
<td><%- node.type %></td>
|
||||||
|
<td><a href="stats/?uuid=<%- node.uuid %>"><%- node.uuid %></a></td>
|
||||||
|
<td><%- node.pool %></td>
|
||||||
|
<td><%- node.username %></td>
|
||||||
|
<td><%- node.public.ip %><span class='port'>:<%- node.public.port %></span></td>
|
||||||
|
<td><%- node.local.ip %><span class='port'>:<%- node.local.port %></span></td>
|
||||||
|
<td><%- ((Date.now() - node.wake_timestamp) / 1000).toLocaleString() %></td>
|
||||||
|
<td><%- (typeof node.pending_credits == 'number' ? node.pending_credits.toLocaleString() : 'N/A') %></td>
|
||||||
|
<td><span class='glyphicon glyphicon-remove' data-uuid="<%- node.uuid %>"></span></td>
|
||||||
|
</tr>
|
||||||
|
<% }); %>
|
||||||
|
</script>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
|
<button type="button" class="btn btn-danger" id="kill-all-btn">
|
||||||
|
<span class="glyphicon glyphicon-remove-circle"></span> Kill all Nodes
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title">Queued Assignments</h3>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<table id="assignments-table" class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>UUID</th>
|
||||||
|
<th>Pool</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<script id="queued-template" type="text/template">
|
||||||
|
<% _.each(queued, function(assignment, uuid){ %>
|
||||||
|
<tr>
|
||||||
|
<td><%- assignment.type %></td>
|
||||||
|
<td><%- uuid %></td>
|
||||||
|
<td><%- assignment.pool %></td>
|
||||||
|
</tr>
|
||||||
|
<% }); %>
|
||||||
|
</script>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="queued-lead" class="table-lead"><h3>Queued Assignments</h3><div class="lead-line"></div></div>
|
|
||||||
<table id="assignments-table" class="table table-striped">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Type</th>
|
|
||||||
<th>UUID</th>
|
|
||||||
<th>Pool</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<script id="queued-template" type="text/template">
|
|
||||||
<% _.each(queued, function(assignment, uuid){ %>
|
|
||||||
<tr>
|
|
||||||
<td><%- assignment.type %></td>
|
|
||||||
<td><%- uuid %></td>
|
|
||||||
<td><%- assignment.pool %></td>
|
|
||||||
</tr>
|
|
||||||
<% }); %>
|
|
||||||
</script>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<!--#include file="footer.html"-->
|
<!--#include file="footer.html"-->
|
||||||
|
<script src='js/underscore-min.js'></script>
|
||||||
<script src='js/tables.js'></script>
|
<script src='js/tables.js'></script>
|
||||||
<script src='js/underscore-1.5.0.min.js'></script>
|
|
||||||
<!--#include file="page-end.html"-->
|
<!--#include file="page-end.html"-->
|
Loading…
Reference in a new issue