1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
<h1>Connections</h1>
<%= maybe_truncate(connections) %>
<div class="updatable">
<% if (connections.length > 0) { %>
<table class="list">
<thead>
<tr>
<th colspan="<% if (nodes_interesting) { %>6<% } else { %>5<% } %>">Network</th>
<th colspan="<% if (vhosts_interesting) { %>5<% } else { %>4<% } %>">Overview</th>
</tr>
<tr>
<th><%= fmt_sort('Protocol', 'protocol') %></th>
<th><%= fmt_sort('Name', 'name') %></th>
<% if (nodes_interesting) { %>
<th><%= fmt_sort('Node', 'node') %></th>
<% } %>
<th><%= fmt_sort('From client', 'recv_oct_details.rate') %></th>
<th><%= fmt_sort('To client', 'send_oct_details.rate') %></th>
<th><%= fmt_sort('Timeout', 'timeout') %></th>
<th><%= fmt_sort('Channels', 'channels') %></th>
<% if (vhosts_interesting) { %>
<th><%= fmt_sort('Virtual host', 'vhost') %></th>
<% } %>
<th><%= fmt_sort('User name', 'user') %></th>
<th><%= fmt_sort('State', 'state') %></th>
</tr>
</thead>
<tbody>
<%
for (var i = 0; i < connections.length; i++) {
var connection = connections[i];
%>
<tr<%= alt_rows(i)%>>
<td>
<%= connection.protocol %>
<% if (connection.ssl) { %>
<sub>SSL</sub>
<% } %>
</td>
<td><%= link_conn(connection.name) %></td>
<% if (nodes_interesting) { %>
<td><%= connection.node %></td>
<% } %>
<td><%= fmt_rate_bytes(connection, 'recv_oct') %></td>
<td><%= fmt_rate_bytes(connection, 'send_oct') %></td>
<td><% if (connection.timeout != undefined) { %><%= connection.timeout %>s<% } %></td>
<td><%= connection.channels %></td>
<% if (vhosts_interesting) { %>
<td><%= fmt_string(connection.vhost) %></td>
<% } %>
<td><%= fmt_string(connection.user) %></td>
<td class="status"><%= fmt_connection_state(connection) %></td>
</tr>
<% } %>
</tbody>
</table>
<% } else { %>
<p>... no connections ...</p>
<% } %>
</div>
|