From 89012e8631ffa9cff25ebadcfcce6fe74a6dab0e Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Wed, 13 Feb 2002 23:34:33 +0000 Subject: Fix for bug 115369: Templatization of long_list.cgi Patch by Gervase Markham r= bbaetz, dkl --- template/default/show/comments.tmpl | 50 ++++++++++++ template/default/show/multiple.tmpl | 154 ++++++++++++++++++++++++++++++++++++ 2 files changed, 204 insertions(+) create mode 100644 template/default/show/comments.tmpl create mode 100644 template/default/show/multiple.tmpl (limited to 'template/default') diff --git a/template/default/show/comments.tmpl b/template/default/show/comments.tmpl new file mode 100644 index 000000000..77c621a74 --- /dev/null +++ b/template/default/show/comments.tmpl @@ -0,0 +1,50 @@ +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Gervase Markham + #%] + +[% DEFAULT start_at = 0 %] +[% count = 0 %] +[% FOREACH comment = bug.comments %] + [% IF count >= start_at %] + [% PROCESS a_comment %] + [% END %] + + [% count = count + 1 %] +[% END %] + + +[%############################################################################%] +[%# Block for individual comments #%] +[%############################################################################%] + +[% BLOCK a_comment %] + [% IF count > 0 %] +
+ ------- Additional Comment + #[% count %] From + [% comment.name %] + [%+ comment.time %] ------- + + [% END %] + +
+
+    [% quoteUrls(comment.body) %]
+  
+[% END %] diff --git a/template/default/show/multiple.tmpl b/template/default/show/multiple.tmpl new file mode 100644 index 000000000..de5e6c251 --- /dev/null +++ b/template/default/show/multiple.tmpl @@ -0,0 +1,154 @@ +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Terry Weissman + # Gervase Markham + #%] + +[% INCLUDE global/header + title = "Full Text Bug Listing" +%] + +[% IF bugs.first %] + [% FOREACH bug = bugs %] + [% PROCESS bug_display %] + [% END %] +[% ELSE %] +

+ You'd have more luck if you gave me some bug numbers. +

+[% END %] + +[% INCLUDE global/footer %] + + +[%###########################################################################%] +[%# Block for an individual bug #%] +[%###########################################################################%] + +[% BLOCK bug_display %] + +
+ + Bug [% bug.bug_id %] - [% bug.short_desc FILTER html %] + +
+ + + + + [% PROCESS cell attr = { description => "Product", + name => "product" } %] + [% PROCESS cell attr = { description => "Version", + name => "version" } %] + [% PROCESS cell attr = { description => "Platform", + name => "rep_platform" } %] + + + + [% PROCESS cell attr = { description => "OS/Version", + name => "op_sys" } %] + [% PROCESS cell attr = { description => "Status", + name => "bug_status" } %] + [% PROCESS cell attr = { description => "Severity", + name => "bug_severity" } %] + [% PROCESS cell attr = { description => "Priority", + name => "priority" } %] + + + + [% PROCESS cell attr = { description => "Resolution", + name => "resolution" } %] + [% PROCESS cell attr = { description => "Assigned To", + name => "assigned_to" } %] + [% PROCESS cell attr = { description => "Reported By", + name => "reporter" } %] + [% IF Param('useqacontact') %] + [% PROCESS cell attr = { description => "QA Contact", + name => "qa_contact" } %] + [% END %] + + + + + + + + + + + + + + + + [% IF use_keywords %] + + + + [% END %] + + [% IF Param("usestatuswhiteboard") %] + + + + [% END %] + + + + +
+ Bug#: + [% bug.bug_id %] +
+ Component:  + [% bug.component %] + + [% IF Param('usetargetmilestone') %] + Target Milestone:  + [% bug.target_milestone %] + [% END %] +
+ URL:  + [% bug.bug_file_loc FILTER html %] +
+ Summary: [% bug.short_desc %] +
+ Keywords:  [% bug.keywords %] +
+ Status Whiteboard:  + [% bug.status_whiteboard FILTER html %] +
+ Description: +
+ + [% PROCESS show/comments.tmpl %] + +
+[% END %] + + +[%###########################################################################%] +[%# Block for standard table cells #%] +[%###########################################################################%] + +[% BLOCK cell %] + + [% attr.description%]:  + [% bug.${attr.name} %] + +[% END %] -- cgit v1.2.3-24-g4f1b