File: publish.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 (63 lines) | stat: -rw-r--r-- 2,138 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<div class="section-hidden">
  <h2>Publish message</h2>
  <div class="hider">
    <form action="#/exchanges/publish" method="post">
<% if (mode == 'queue') { %>
      <input type="hidden" name="vhost" value="<%= fmt_string(queue.vhost) %>"/>
      <input type="hidden" name="name" value="amq.default"/>
<% } else { %>
      <input type="hidden" name="vhost" value="<%= fmt_string(exchange.vhost) %>"/>
      <input type="hidden" name="name" value="<%= fmt_exchange_url(exchange.name) %>"/>
<% } %>
      <input type="hidden" name="properties" value=""/>
      <table class="form">
<% if (mode == 'queue') { %>
        <tr>
          <td colspan="2"><input type="hidden" name="routing_key" value="<%= fmt_string(queue.name) %>"/> Message will be published to the default exchange with routing key <strong><%= fmt_string(queue.name) %></strong>, routing it to this queue.</td>
        </tr>
<% } else { %>
        <tr>
          <th><label>Routing key:</label></th>
          <td><input type="text" name="routing_key" value=""/></td>
        </tr>
<% } %>
        <tr>
          <th><label>Delivery mode:</label></th>
          <td>
            <select name="delivery_mode">
              <option value="1">1 - Non-persistent</option>
              <option value="2">2 - Persistent</option>
            </select>
          </td>
        </tr>
        <tr>
          <th>
            <label>
              Headers:
              <span class="help" id="message-publish-headers"></span>
            </label>
          </th>
          <td>
            <div class="multifield" id="headers"></div>
          </td>
        </tr>
        <tr>
          <th>
            <label>
              Properties:
              <span class="help" id="message-publish-properties"></span>
            </label>
          </th>
          <td>
            <div class="multifield string-only" id="props"></div>
          </td>
        </tr>
        <tr>
          <th><label>Payload:</label></th>
          <td><textarea name="payload"></textarea></td>
        </tr>
      </table>
      <input type="submit" value="Publish message" />
    </form>
  </div>
</div>