~ubuntu-branches/ubuntu/saucy/rabbitmq-server/saucy

« back to all changes in this revision

Viewing changes to plugins-src/rabbitmq-federation-management/priv/www/js/tmpl/federation-links.ejs

  • Committer: Package Import Robot
  • Author(s): Emile Joubert
  • Date: 2012-11-19 11:42:31 UTC
  • mfrom: (0.2.18) (0.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20121119114231-hvapkn4akng09etr
Tags: 3.0.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<h1>Federation links</h1>
2
 
<div class="updatable">
3
 
<% if (links.length > 0) { %>
4
 
<table class="list">
5
 
 <thead>
6
 
  <tr>
7
 
    <th>Connection</th>
8
 
<% if (vhosts_interesting) { %>
9
 
    <th>Virtual Host</th>
10
 
<% } %>
11
 
    <th>Exchange</th>
12
 
<% if (nodes_interesting) { %>
13
 
    <th>Node</th>
14
 
<% } %>
15
 
    <th>State</th>
16
 
    <th>Inbound message rate</th>
17
 
    <th>Last changed</th>
18
 
  </tr>
19
 
 </thead>
20
 
 <tbody>
21
 
<%
22
 
 for (var i = 0; i < links.length; i++) {
23
 
    var link = links[i];
24
 
%>
25
 
   <tr<%= alt_rows(i)%>>
26
 
    <td>
27
 
      <%= fmt_string(link.connection) %>
28
 
      <% if (link.exchange != link.upstream_exchange) { %>
29
 
      <sub><%= fmt_string(link.upstream_exchange) %></sub>
30
 
      <% } %>
31
 
    </td>
32
 
<% if (vhosts_interesting) { %>
33
 
    <td><%= fmt_string(link.vhost) %></td>
34
 
<% } %>
35
 
    <td><%= link_exchange(link.vhost, link.exchange) %></td>
36
 
<% if (nodes_interesting) { %>
37
 
    <td><%= fmt_string(link.node) %></td>
38
 
<% } %>
39
 
<% if (link.error) { %>
40
 
    <td class="status">
41
 
       <div class="red"><acronym title="<%= fmt_escape_html_one_line(link.error) %>"><%= link.status %></acronym></div>
42
 
    </td>
43
 
    <td></td>
44
 
    <td><%= link.timestamp %></td>
45
 
  </tr>
46
 
<% } else { %>
47
 
    <td class="status">
48
 
       <div class="green"><%= link.status %></div>
49
 
    </td>
50
 
    <td class="r">
51
 
      <% if (link.local_channel) { %>
52
 
        <%= fmt_rate(link.local_channel.message_stats, 'confirm') %>
53
 
      <% } %>
54
 
    </td>
55
 
    <td><%= link.timestamp %></td>
56
 
  </tr>
57
 
<% } %>
58
 
  <% } %>
59
 
 </tbody>
60
 
</table>
61
 
<% } else { %>
62
 
  <p>... no links ...</p>
63
 
<% } %>
64
 
</div>