File: streamConsumersList.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 (35 lines) | stat: -rw-r--r-- 1,160 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
<% if (consumers.length > 0) { %>
    <table class="list">
      <thead>
        <tr>
          <th>Subscription ID</th>
          <th>Stream</th>
          <th>Messages Consumed</th>
          <th>Offset</th>
          <th>Offset Lag</th>
          <th>Credits</th>
          <th>Active</span></th>
          <th>Activity status</th>
          <th>Properties</th>
        </tr>
      </thead>
<%
  for (var i = 0; i < consumers.length; i++) {
    var consumer = consumers[i];
%>
      <tr<%= alt_rows(i) %>>
        <td><%= consumer.subscription_id %></td>
        <td><%= link_queue(consumer.queue.vhost, consumer.queue.name) %></td>
        <td class="c"><%= consumer.consumed %></td>
        <td class="c"><%= consumer.offset %></td>
        <td class="c"><%= consumer.offset_lag %></td>
        <td class="c"><%= consumer.credits %></td>
        <td class="c"><%= fmt_boolean(consumer.active, "&#9679;") %></td>
        <td class="c"><%= fmt_activity_status(consumer.activity_status, "up") %></td>
        <td class="c"><%= fmt_table_short(consumer.properties) %></td>
      </tr>
<% } %>
    </table>
<% } else { %>
  <p>... no consumers ...</p>
<% } %>