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 +++++++++++++ 4 files changed, 344 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 (limited to 'template/default/attachment') 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 %] -- cgit v1.2.3-24-g4f1b