From 99ec314f1888f326b2305be67da991c5316ce20f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 14 Nov 2012 23:04:59 +0800 Subject: Bug 589322: deploy push extension --- .../en/default/pages/push_queues.html.tmpl | 102 +++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 extensions/Push/template/en/default/pages/push_queues.html.tmpl (limited to 'extensions/Push/template/en/default/pages/push_queues.html.tmpl') diff --git a/extensions/Push/template/en/default/pages/push_queues.html.tmpl b/extensions/Push/template/en/default/pages/push_queues.html.tmpl new file mode 100644 index 000000000..67f079f92 --- /dev/null +++ b/extensions/Push/template/en/default/pages/push_queues.html.tmpl @@ -0,0 +1,102 @@ +[%# 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" + javascript_urls = [ 'extensions/Push/web/admin.js' ] + style_urls = [ 'extensions/Push/web/admin.css' ] +%] + + + +[% PROCESS show_queue + queue = push.queue + title = 'Pending' + pending = 1 +%] + +[% FOREACH connector = push.connectors.list %] + [% NEXT UNLESS connector.enabled %] + [% PROCESS show_queue + queue = connector.backlog + title = connector.name _ ' Backlog' + pending = 0 + %] +[% END %] + +
+ +[% INCLUDE global/footer.html.tmpl %] + +[% BLOCK show_queue %] + [% count = queue.count %] + + + [% title FILTER html %] Queue ([% count FILTER html %]) + + [% IF queue.backoff && count %] + + Next Attempt: [% queue.backoff.next_attempt_ts FILTER time %] + + [% ELSE %] +   + [% END %] + + + [% IF count %] + + Timestamp + Change Set + [% IF pending %] + Routing Key + [% ELSE %] + Routing Key + Last Attempt + Attempts + Last Error + [% END %] +   + + [% END %] + + [% FOREACH message = queue.list('limit', 10) %] + + [% message.push_ts FILTER html %] + [% message.change_set FILTER html %] + [% IF pending %] + [% message.routing_key FILTER html %] + [% ELSE %] + [% message.routing_key FILTER html %] + [% IF message.attempt_ts %] + [% message.attempt_ts FILTER time %] + [% message.attempts FILTER html %] + + [% IF message.last_error.length > 40 %] + [% last_error = message.last_error.substr(0, 40) _ '...' %] + [% ELSE %] + [% last_error = message.last_error %] + [% END %] + [% last_error FILTER html %] + [% ELSE %] + - + - + - + [% END %] + [% END %] + + View + + + [% END %] + + +   + +[% END %] -- cgit v1.2.3-24-g4f1b