[%# 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 %]