File: messages.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-- 860 bytes parent folder | download | duplicates (11)
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
<%
   for (var i = 0; i < msgs.length; i++) {
   var msg = msgs[i];
%>
<div class="box">
<h3>Message <%= i+1 %></h3>
<p>The server reported <b><%= msg.message_count %></b> messages remaining.</p>
<table class="facts">
  <tr>
    <th>Exchange</th>
    <td><%= fmt_exchange(msg.exchange) %></td>
  </tr>
  <tr>
    <th>Routing Key</th>
    <td><%= fmt_string(msg.routing_key) %></td>
  </tr>
  <tr>
    <th>Redelivered</th>
    <td><%= fmt_boolean(msg.redelivered) %></td>
  </tr>
  <tr>
    <th>Properties</th>
    <td><%= fmt_table_short(msg.properties) %></td>
  </tr>
  <tr>
    <th>
      Payload
      <sub><%= msg.payload_bytes %> bytes</sub>
      <sub>Encoding: <%= msg.payload_encoding %></sub>
    </th>
    <td>
      <pre class="msg-payload"><%= fmt_maybe_wrap(msg.payload, msg.payload_encoding) %></pre>
    </td>
  </tr>
</table>
</div>
<%
  }
%>