File: consumers.ejs

package info (click to toggle)
rabbitmq-server 3.3.5-1.1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 12,004 kB
  • sloc: erlang: 78,203; python: 3,187; xml: 2,843; makefile: 903; sh: 831; java: 660; perl: 64; ruby: 63
file content (39 lines) | stat: -rw-r--r-- 1,185 bytes parent folder | download | duplicates (4)
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
<% 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>
          <th>Prefetch count</th>
          <th>Arguments</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.vhost, consumer.queue.name) %></td>
<% } %>
        <td class="c"><%= fmt_boolean(consumer.ack_required) %></td>
        <td class="c"><%= fmt_boolean(consumer.exclusive) %></td>
        <td class="c"><%= consumer.prefetch_count %></td>
        <td class="c"><%= fmt_table_short(consumer.arguments) %></td>
      </tr>
<% } %>
    </table>
<% } else { %>
  <p>... no consumers ...</p>
<% } %>