From 8c404164f025a9fed3bb547ba203d406c5e60dbf Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 28 Mar 2012 17:27:27 -0400 Subject: Bug 726193: add TryAutoLand extension --- .../hook/bug/edit-after_custom_fields.html.tmpl | 101 +++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 extensions/TryAutoLand/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl (limited to 'extensions/TryAutoLand/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl') diff --git a/extensions/TryAutoLand/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl b/extensions/TryAutoLand/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl new file mode 100644 index 000000000..f9bb8ef5e --- /dev/null +++ b/extensions/TryAutoLand/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl @@ -0,0 +1,101 @@ +[%# 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. + #%] + +[% IF user.in_group('hg-try') %] + [% autoland_attachments = [] %] + [% autoland_waiting = 0 %] + [% autoland_running = 0 %] + [% autoland_finished = 0 %] + [% FOREACH attachment = bug.attachments %] + [% NEXT IF attachment.isprivate && !user.is_insider && attachment.attacher.id != user.id %] + [% NEXT IF attachment.isobsolete %] + [% NEXT IF !attachment.ispatch %] + [% autoland_attachments.push(attachment) %] + [% IF attachment.autoland_checked %] + [% IF attachment.autoland_status == 'waiting' %] + [% autoland_waiting = autoland_waiting + 1 %] + [% END %] + [% IF attachment.autoland_status == 'running' %] + [% autoland_running = autoland_running + 1 %] + [% END %] + [% IF attachment.autoland_status == 'success' || attachment.autoland_status == 'failed' %] + [% autoland_finished = autoland_finished + 1 %] + [% END %] + [% END %] + [% END %] + [% IF autoland_attachments.size %] + + + + AutoLand: + + + + (edit) + Total: [% autoland_attachments.size FILTER html %] - + Waiting: [% autoland_waiting FILTER html %] - + Running: [% autoland_running FILTER html %] - + Finished: [% autoland_finished FILTER html %] + +
+ Branches (required):
+
+ Try Syntax (required): (Default: [% autoland_default_try_syntax FILTER html %])
+
+ Patches: +
+ + [% FOREACH attachment = autoland_attachments %] + + + + + + [% END %] +
+ [% IF attachment.autoland_checked %] + + [% END %] + + + + [% attachment.filename FILTER html %] + + + [% IF attachment.autoland_checked %] + + [% attachment.autoland_status FILTER html %] + + [% END %] + + [% IF attachment.autoland_checked %] + [% attachment.autoland_status_when FILTER time('%Y-%m-%d %H:%M') %] + [% END %] +
+
+ + + + [% END %] +[% END %] -- cgit v1.2.3-24-g4f1b