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 61 62 63 64
|
<h1>Federation links</h1>
<div class="updatable">
<% if (links.length > 0) { %>
<table class="list">
<thead>
<tr>
<th>Connection</th>
<% if (vhosts_interesting) { %>
<th>Virtual Host</th>
<% } %>
<th>Exchange</th>
<% if (nodes_interesting) { %>
<th>Node</th>
<% } %>
<th>State</th>
<th>Inbound message rate</th>
<th>Last changed</th>
</tr>
</thead>
<tbody>
<%
for (var i = 0; i < links.length; i++) {
var link = links[i];
%>
<tr<%= alt_rows(i)%>>
<td>
<%= fmt_string(link.connection) %>
<% if (link.exchange != link.upstream_exchange) { %>
<sub><%= fmt_string(link.upstream_exchange) %></sub>
<% } %>
</td>
<% if (vhosts_interesting) { %>
<td><%= fmt_string(link.vhost) %></td>
<% } %>
<td><%= link_exchange(link.vhost, link.exchange) %></td>
<% if (nodes_interesting) { %>
<td><%= fmt_string(link.node) %></td>
<% } %>
<% if (link.error) { %>
<td class="status">
<div class="red"><acronym title="<%= fmt_escape_html_one_line(link.error) %>"><%= link.status %></acronym></div>
</td>
<td></td>
<td><%= link.timestamp %></td>
</tr>
<% } else { %>
<td class="status">
<div class="green"><%= link.status %></div>
</td>
<td class="r">
<% if (link.local_channel) { %>
<%= fmt_rate(link.local_channel.message_stats, 'confirm') %>
<% } %>
</td>
<td><%= link.timestamp %></td>
</tr>
<% } %>
<% } %>
</tbody>
</table>
<% } else { %>
<p>... no links ...</p>
<% } %>
</div>
|