File: consumers.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 (35 lines) | stat: -rw-r--r-- 1,010 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
<% if (consumers.length > 0) { %>
    <table class="list">
      <thead>
        <tr>
<% if (mode == 'queue') { %>
          <th>Channel</th>
          <th>Consumer tag</th>
<% } else { %>
          <th>Consumer tag</th>
          <th>Queue</th>
<% } %>
          <th>Ack required</th>
          <th>Exclusive</th>
        </tr>
      </thead>
<%
  for (var i = 0; i < consumers.length; i++) {
    var consumer = consumers[i];
%>
      <tr<%= alt_rows(i) %>>
<% if (mode == 'queue') { %>
        <td><%= link_channel(consumer.channel_details.name) %></td>
        <td><%= fmt_string(consumer.consumer_tag) %></td>
<% } else { %>
        <td><%= fmt_string(consumer.consumer_tag) %></td>
        <td><%= link_queue(consumer.queue_details.vhost, consumer.queue_details.name) %></td>
<% } %>
        <td class="c"><%= fmt_boolean(consumer.ack_required) %></td>
        <td class="c"><%= fmt_boolean(consumer.exclusive) %></td>
      </tr>
<% } %>
    </table>
<% } else { %>
  <p>... no consumers ...</p>
<% } %>