summaryrefslogtreecommitdiffstats
path: root/extensions/Push/template/en/default/pages/push_queues_view.html.tmpl
blob: 355e6af91f94dc1ea2883eafe1a2254315d328b6 (plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

[% PROCESS global/header.html.tmpl
  title = "Push Administration: Queues: Payload"
  javascript_urls = [ 'extensions/Push/web/admin.js' ]
  style_urls = [ 'extensions/Push/web/admin.css' ]
%]

[% IF !message_obj %]
    <a href="?id=push_queues.html">Return</a>
    [% INCLUDE global/footer.html.tmpl %]
    [% RETURN %]
[% END %]

<table id="report" cellspacing="0">

<tr>
  <th class="report-header" nowrap>Connector</th>
  <td width="100%">[% message_obj.connector || '-' FILTER html %]</td>
</tr>
<tr>
  <th class="report-header" nowrap>Message ID</th>
  <td width="100%">[% message_obj.message_id FILTER html %]</td>
</tr>
<tr>
  <th class="report-header" nowrap>Push Time</th>
  <td width="100%">[% message_obj.push_ts FILTER time FILTER html %]</td>
</tr>
<tr>
  <th class="report-header" nowrap>Change Set</th>
  <td width="100%">[% message_obj.change_set FILTER html %]</td>
</tr>
<tr>
  <th class="report-header" nowrap>Routing Key</th>
  <td width="100%">[% message_obj.routing_key FILTER html %]</td>
</tr>

[% IF message_obj.attempts %]
  <tr>
    <th class="report-header" nowrap>Attempts</th>
    <td width="100%">[% message_obj.attempts FILTER html %]</td>
  </tr>
  <tr>
    <th class="report-header" nowrap>Last Attempt Time</th>
    <td width="100%">[% message_obj.attempt_ts FILTER time FILTER html %]</td>
  </tr>
  <tr>
    <th class="report-header" nowrap>Last Error</th>
    <td width="100%"><b>[% message_obj.last_error FILTER html %]</b></td>
  </tr>
[% END %]

<tr>
  <th class="report-header">Actions</th>
  <td>
    <form class="action-button" method="post" action="page.cgi" id="deleteMessage" enctype="multipart/form-data">
      <input type="hidden" name="token" value="[% issue_hash_token(['deleteMessage']) FILTER html %]">
      <input type="hidden" name="id" value="push_queues_view.html">
      <input type="hidden" name="delete" value="1">
      <input type="hidden" name="message" value="[% message_obj.id FILTER html %]">
      <input type="hidden" name="connector" value="[% message_obj.connector FILTER html %]">
      <input type="submit" value="Delete">
    </form>
    <form class="action-button" method="post" action="page.cgi" id="returnQueue" enctype="multipart/form-data">
      <input type="hidden" name="id" value="push_queues.html">
      <input type="submit" value="Return">
    </form>
  </td>
</tr>

<tr>
  <td colspan="2">
    [% IF json %]
      <pre>[% json FILTER html %]</pre>
    [% ELSE %]
      <pre>[% message_obj.payload FILTER html %]</pre>
    [% END %]
  </td>
</tr>
</table>

[% INCLUDE global/footer.html.tmpl %]