From 880e86c82eb67a6940e2a38e74c7e66dafb44743 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Fri, 31 Aug 2001 10:54:25 +0000 Subject: Fix for bug 84338: initial implementation of attachment tracker, which lets users flag attachments with statuses. Patch by Myk Melez r=justdave@syndicomm.com --- template/default/attachment/edit.atml | 192 ++++++++++++++++++++++++++++++ template/default/attachment/list.atml | 58 +++++++++ template/default/attachment/updated.atml | 16 +++ template/default/attachment/viewall.atml | 78 ++++++++++++ template/default/attachstatus/create.atml | 56 +++++++++ template/default/attachstatus/edit.atml | 52 ++++++++ template/default/attachstatus/list.atml | 52 ++++++++ template/default/global/footer | 6 + template/default/global/header | 49 ++++++++ 9 files changed, 559 insertions(+) create mode 100755 template/default/attachment/edit.atml create mode 100755 template/default/attachment/list.atml create mode 100755 template/default/attachment/updated.atml create mode 100755 template/default/attachment/viewall.atml create mode 100755 template/default/attachstatus/create.atml create mode 100755 template/default/attachstatus/edit.atml create mode 100755 template/default/attachstatus/list.atml create mode 100755 template/default/global/footer create mode 100755 template/default/global/header (limited to 'template') diff --git a/template/default/attachment/edit.atml b/template/default/attachment/edit.atml new file mode 100755 index 000000000..742822369 --- /dev/null +++ b/template/default/attachment/edit.atml @@ -0,0 +1,192 @@ +[% INCLUDE global/header + title = "Edit Attachment #$attachid for Bug #$bugid" + h1 = "Edit Attachment #$attachid for Bug #$bugid" + h2 = bugsummary + style = " + th { text-align: right; vertical-align: top; } + td { text-align: left; vertical-align: top; } + td#info { text-align: right; vertical-align: top; } + td#actions { text-align: right; vertical-align: bottom; } + td#noview { text-align: left; vertical-align: center; } + " +%] + +
+ + + + + + + + + [% IF isviewable %] + + [% ELSE %] + + [% END %] + + + +
+ + Description:
+
+ + MIME Type:
+
+ + Flags:
+ patch + obsolete
+ + [% IF statusdefs.size %] + Status:
+ [% FOREACH def = statusdefs %] + [% def.name %]
+ [% END %] + [% END %] + +
+ Comment (on the bug):
+
+
+ + + +
+
+ + + + + + +

+ Attachment cannot be viewed because its MIME type is not either text/*, image/*, or application/vnd.mozilla.*. + Download the attachment instead. +

+
+ + Attachments on this Bug: + [% FOREACH a = attachments %] + [% IF a == attachid %] + #[% a %] + [% ELSE %] + #[% a %] + [% END %] + [% "|" UNLESS loop.last() %] + [% END %] + +
+ + + +
+ +[% INCLUDE global/footer %] diff --git a/template/default/attachment/list.atml b/template/default/attachment/list.atml new file mode 100755 index 000000000..3086c8dc0 --- /dev/null +++ b/template/default/attachment/list.atml @@ -0,0 +1,58 @@ +
+ + + + + + + + + + [% FOREACH attachment = attachments %] + + + + + + + + + + + + [% END %] + + + + + +
AttachmentTypeModifiedStatusActions
+ [% IF attachment.isobsolete %] + [% attachment.description %] + [% ELSE %] + [% attachment.description %] + [% END %] + + [% IF attachment.ispatch %] + patch + [% ELSE %] + [% attachment.mimetype %] + [% END %] + [% attachment.date %] + + [% IF attachment.statuses.size == 0 %] + none + [% ELSE %] + [% FOREACH s = attachment.statuses %] + [% s %]
+ [% END %] + [% END %] +
+
+ Edit +
+ Create a new attachment (proposed patch, testcase, etc.) + + View All +
+
diff --git a/template/default/attachment/updated.atml b/template/default/attachment/updated.atml new file mode 100755 index 000000000..7b52deebc --- /dev/null +++ b/template/default/attachment/updated.atml @@ -0,0 +1,16 @@ +[% INCLUDE global/header + title = "Changes Submitted" + style = "th { text-align: left; }" +%] + +

+ Your changes have been submitted for + attachment #[% attachid %] + of bug #[% bugid %]. +

+ +[% mailresults %] + +
+ +[% INCLUDE global/footer %] diff --git a/template/default/attachment/viewall.atml b/template/default/attachment/viewall.atml new file mode 100755 index 000000000..9a22b716a --- /dev/null +++ b/template/default/attachment/viewall.atml @@ -0,0 +1,78 @@ +[% INCLUDE global/header + title = "View All Attachments for Bug #$bugid" + h1 = "View All Attachments for Bug #$bugid" + h2 = bugsummary + style = " + th { text-align: right; vertical-align: top; } + td { text-align: left; vertical-align: top; } + td#info { text-align: right; vertical-align: top; } + td#actions { text-align: right; vertical-align: bottom; } + " +%] + +
+ +[% FOREACH a = attachments %] + +
+ + + + + + + + + + + + + + + +
+ Attachment #[% a.attachid %] +
+ [% IF a.isobsolete %] + [% a.description %] + [% ELSE %] + [% a.description %] + [% END %] + + [% IF a.ispatch %] + patch + [% ELSE %] + [% a.mimetype %] + [% END %] + [% a.date %] + + [% IF a.statuses.size == 0 %] + none + [% ELSE %] + [% FOREACH s = a.statuses %] + [% s %]
+ [% END %] + [% END %] +
+
+ Edit +
+ + [% IF a.isviewable %] + + [% ELSE %] +

+ Attachment cannot be viewed because its MIME type is not text/*, image/*, or application/vnd.mozilla.*. + Download the attachment instead. +

+ [% END %] +
+ +

+ +[% END %] + +[% INCLUDE global/footer %] diff --git a/template/default/attachstatus/create.atml b/template/default/attachstatus/create.atml new file mode 100755 index 000000000..602dab92e --- /dev/null +++ b/template/default/attachstatus/create.atml @@ -0,0 +1,56 @@ +[% INCLUDE global/header + title = "Create Attachment Status" + style = " + th { text-align: right; vertical-align: top; } + td { text-align: left; vertical-align: top; } + " +%] + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name: + +
Description: + +
Sort Key: + +
Product: + +
+ +
+
+ +[% INCLUDE global/footer %] diff --git a/template/default/attachstatus/edit.atml b/template/default/attachstatus/edit.atml new file mode 100755 index 000000000..646e0f0bf --- /dev/null +++ b/template/default/attachstatus/edit.atml @@ -0,0 +1,52 @@ +[% INCLUDE global/header + title = "Edit Attachment Status" + style = " + th { text-align: right; vertical-align: top; } + td { text-align: left; vertical-align: top; } + " +%] + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name: + +
Description: + +
Sort Key: + +
Product: + [% product %] +
+ +
+
+ +[% INCLUDE global/footer %] diff --git a/template/default/attachstatus/list.atml b/template/default/attachstatus/list.atml new file mode 100755 index 000000000..acae5cd8d --- /dev/null +++ b/template/default/attachstatus/list.atml @@ -0,0 +1,52 @@ +[% INCLUDE global/header + title = 'Administer Attachment Statuses' + message = message + style = " + th { text-align: left; } + " +%] + + + + + + + + + + + + [% FOREACH statusdef = statusdefs %] + + + + + + + + + + [% END %] + + + + + + +
NameDescriptionSort KeyProductAction(s)
[% statusdef.name FILTER html %][% statusdef.description FILTER html %][% statusdef.sortkey %][% statusdef.product %] + Edit + Delete +
+ Create +
+ + + +[% INCLUDE global/footer %] diff --git a/template/default/global/footer b/template/default/global/footer new file mode 100755 index 000000000..e06d3d8e1 --- /dev/null +++ b/template/default/global/footer @@ -0,0 +1,6 @@ + +[% PerformSubsts(Param('footerhtml')) %] + + + + diff --git a/template/default/global/header b/template/default/global/header new file mode 100755 index 000000000..676b7ddf4 --- /dev/null +++ b/template/default/global/header @@ -0,0 +1,49 @@ +[% DEFAULT + title = "" + h1 = title + h2 = "" + extra = "" + jscript = "" + style = "" + message = "" +%] + + + + [% title %] + [% Param('headerhtml') %] + [% jscript %] + + + + + [% PerformSubsts(Param('bannerhtml')) %] + +[% IF h1 || h2 %] + + + + + + +
+ + + + +
+ [% h1 %] +
+
 [% h2 %]
+[% END %] + + [% IF message %] +
+ [% message %] +
+ [% END %] + + [% Param('shutdownhtml') %] + -- cgit v1.2.3-24-g4f1b