File: streamPublishersList.ejs

package info (click to toggle)
rabbitmq-server 4.0.5-8
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 37,972 kB
  • sloc: erlang: 257,835; javascript: 22,466; sh: 3,037; makefile: 2,517; python: 1,966; xml: 646; cs: 335; java: 244; ruby: 212; php: 100; perl: 63; awk: 13
file content (41 lines) | stat: -rw-r--r-- 1,259 bytes parent folder | download | duplicates (5)
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
<% if (publishers.length > 0) { %>
    <table class="list">
      <thead>
        <tr>
<% if (mode == 'queue') { %>
          <th>Connection</th>
          <th>ID</th>
          <th>Reference</th>
<% } else { %>
          <th>ID</th>
          <th>Reference</th>
          <th>Queue</th>
<% } %>
          <th>Messages Published</th>
          <th>Messages Confirmed</th>
          <th>Messages Errored</th>
        </tr>
      </thead>
<%
  for (var i = 0; i < publishers.length; i++) {
    var publisher = publishers[i];
%>
      <tr<%= alt_rows(i) %>>
<% if (mode == 'queue') { %>
        <td><%= link_stream_conn(publisher.queue.vhost, publisher.connection_details.name) %></td>
        <td><%= publisher.publisher_id %></td>
        <td class="c"><%= fmt_string(publisher.reference) %></td>
<% } else { %>
        <td><%= publisher.publisher_id %></td>
        <td class="c"><%= fmt_string(publisher.reference) %></td>
        <td><%= link_queue(publisher.queue.vhost, publisher.queue.name) %></td>
<% } %>
        <td class="c"><%= publisher.published %></td>
        <td class="c"><%= publisher.confirmed %></td>
        <td class="c"><%= publisher.errored %></td>
      </tr>
<% } %>
    </table>
<% } else { %>
  <p>... no publishers ...</p>
<% } %>