File: publish.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 (63 lines) | stat: -rw-r--r-- 2,130 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
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>
            <span class="multifield" id="headers"></span>
          </td>
        </tr>
        <tr>
          <th>
            <label>
              Properties:
              <span class="help" id="message-publish-properties"></span>
            </label>
          </th>
          <td>
            <span class="multifield" id="props"></span>
          </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>