From aed743e23b791f39cd3d31629fe65a36a623739f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 12 Jan 2012 23:11:15 +0800 Subject: Bug 715424: show both the insert time and run time for queued mail --- .../BMO/template/en/default/pages/email_queue.html.tmpl | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'extensions/BMO/template/en/default') diff --git a/extensions/BMO/template/en/default/pages/email_queue.html.tmpl b/extensions/BMO/template/en/default/pages/email_queue.html.tmpl index 7afd083ac..0e4a37551 100644 --- a/extensions/BMO/template/en/default/pages/email_queue.html.tmpl +++ b/extensions/BMO/template/en/default/pages/email_queue.html.tmpl @@ -17,14 +17,27 @@ - + + + [% FOREACH job IN jobs %] - + + +
TimeInsert TimeRun TimeAge Error Count Last Error Error Message
[% time2str("%Y-%m-%d %H:%M:%S %Z", job.timestamp) FILTER html %][% time2str("%Y-%m-%d %H:%M:%S %Z", job.insert_time) FILTER html %][% time2str("%Y-%m-%d %H:%M:%S %Z", job.run_time) FILTER html %] + [% age = now - job.insert_time %] + [% IF age < 60 %] + [% age FILTER none %]s + [% ELSIF age < 60 * 60 %] + [% age / 60 FILTER format('%.0f') %]m + [% ELSE %] + [% age / (60 * 60) FILTER format('%.0f') %]h + [% END %] + [% job.error_count FILTER html %] [% IF job.error_count %] -- cgit v1.2.3-24-g4f1b