File: msg-detail-deliveries.ejs

package info (click to toggle)
rabbitmq-server 2.8.4-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,928 kB
  • sloc: erlang: 52,968; python: 2,846; xml: 1,987; sh: 816; makefile: 683; perl: 86; ruby: 63
file content (43 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download
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
<h3>Deliveries</h3>
<% if (object && object.length > 0) { %>
<%
     var col_redeliver = !is_col_empty(object, 'redeliver', function(o) {return o.stats;});
%>
<table class="list list-with-total">
  <tr>
<% if (mode == 'queue') { %>
    <th>Channel</th>
<% } else { %>
    <th>Queue</th>
<% } %>
    <th>
      deliver / get
      <% if (col_redeliver) { %>
        <sub>of which redelivered</sub>
      <% } %>
    </th>
    <th>ack</th>
  </tr>
<%
   for (var i = 0; i < object.length; i++) {
     var del = object[i];
%>
     <tr<%= alt_rows(i)%>>
<% if (mode == 'queue') { %>
       <td><%= link_channel(del.channel_details.name) %></td>
<% } else { %>
       <td><%= link_queue(del.queue_details.vhost, del.queue_details.name) %></td>
<% } %>
       <td class="r"><%= fmt_deliver_rate(del.stats, col_redeliver) %></td>
       <td class="r"><%= fmt_rate(del.stats, 'ack') %></td>
     </tr>
<% } %>
  <tr class="total">
    <th>Total:</th>
    <td class="r"><%= fmt_deliver_rate(totals, col_redeliver, 'mini-highlight') %></td>
    <td class="r"><%= fmt_rate(totals, 'ack', false, 'mini-highlight') %></td>
  </tr>
</table>
<% } else { %>
<p> ... no deliveries ...</p>
<% } %>