From e47e36a6821a4f954f5d03643cdb5be988568798 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Thu, 28 Nov 2002 18:49:38 +0000 Subject: Bug 171493 - make show_bug use Bug.pm and remove bug_form.pl r=justdave, joel a=justdave --- template/en/default/bug/comments.html.tmpl | 2 +- template/en/default/bug/create/created.html.tmpl | 20 +++- template/en/default/bug/edit.html.tmpl | 101 ++++++++------------- template/en/default/bug/process/next.html.tmpl | 13 ++- template/en/default/bug/show.html.tmpl | 46 ++++++++++ template/en/default/global/code-error.html.tmpl | 4 + .../en/default/global/site-navigation.html.tmpl | 4 +- template/en/default/pages/linked.html.tmpl | 4 +- 8 files changed, 123 insertions(+), 71 deletions(-) create mode 100644 template/en/default/bug/show.html.tmpl (limited to 'template') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 42971b327..98d7ae386 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -68,7 +68,7 @@ # generated HTML #%]
-  [%- quoteUrls(comment.body) -%]
+  [%- comment.body FILTER quoteUrls -%]
 
[% END %] diff --git a/template/en/default/bug/create/created.html.tmpl b/template/en/default/bug/create/created.html.tmpl index 0264413a7..5966e4e0e 100644 --- a/template/en/default/bug/create/created.html.tmpl +++ b/template/en/default/bug/create/created.html.tmpl @@ -23,8 +23,24 @@ title = "Bug $id Submitted" %] -[% PROCESS bug/process/results.html.tmpl %] +[% FOREACH item = sentmail %] + [% PROCESS bug/process/results.html.tmpl + type = item.type + id = item.id + mail = item.mail + %] +[% END %]
-[%# post_bug.cgi will add a copy of the filed bug below here %] +
+ +[% PROCESS bug/edit.html.tmpl %] + +
+ +[% PROCESS bug/navigate.html.tmpl %] + +
+ +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index aa56678dd..56483a779 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -20,19 +20,6 @@ # Vaskin Kissoyan #%] -[% filtered_desc = bug.short_desc FILTER html %] -[% filtered_timestamp = bug.delta_ts FILTER time %] -[% UNLESS header_done %] - [% PROCESS global/header.html.tmpl - title = "Bug $bug.bug_id - $bug.short_desc" - h1 = "Bugzilla Bug $bug.bug_id" - h2 = filtered_desc - h3 = "Last modified: $filtered_timestamp" - style_urls = [ "css/edit_bug.css" ] - %] -[% END %] - -[% PROCESS bug/navigate.html.tmpl %] [% PROCESS bug/time.html.tmpl %] [% IF UserInGroup(Param('timetrackinggroup')) %] @@ -59,12 +46,10 @@ [% END %] -
-
- + [%# *** Hardware Reporter Product OS AddCC *** %] @@ -96,7 +81,7 @@ Reporter: - [% bug.reporter FILTER html %] + [% bug.reporter.identity FILTER html %] @@ -128,19 +113,7 @@ Component: - - - - -   + [% PROCESS select selname => "component" accesskey => "m" %] Version: @@ -203,14 +176,17 @@ Assigned To: - [% bug.assigned_to FILTER html %] + [% bug.assigned_to.identity FILTER html %]   [% IF Param("usetargetmilestone") && bug.target_milestone %] - Target - Milestone: + [% IF bug.milestoneurl %] + + [% END %] + Target Milestone: + [% "" IF bug.milestoneurl %] [% PROCESS select selname = "target_milestone" accesskey => "t" %] @@ -228,7 +204,7 @@ + value="[% bug.qa_contact.email FILTER html %]" size="60"> [% END %] @@ -248,8 +224,10 @@ value="[% bug.bug_file_loc FILTER html %]" size="60"> - [% IF flag_types.size > 0 %] - [% PROCESS "flag/list.html.tmpl" %] + [% IF bug.flag_types.size > 0 %] + [% PROCESS "flag/list.html.tmpl" + flag_types = bug.flag_types + any_flags_requesteeble = bug.any_flags_requesteeble %] [% END %] @@ -276,7 +254,7 @@ [% END %] - [% IF use_keywords %] + [% IF bug.use_keywords %] @@ -350,7 +328,10 @@ [% PROCESS attachment/list.html.tmpl attachments = bug.attachments - bugid = bug.bug_id %] + bugid = bug.bug_id + num_attachment_flag_types = bug.num_attachment_flag_types + show_attachment_flags = bug.show_attachment_flags + %] [%# *** Dependencies Votes *** %] @@ -405,9 +386,13 @@ accesskey="c">
- [% IF groups.size > 0 %] + [% IF bug.groups.size > 0 %] + [% inallgroups = 1 %] + [% inagroup = 0 %] + [% FOREACH group = bug.groups %] + [% SET inallgroups = 0 IF NOT group.ingroup %] + [% SET inagroup = 1 IF group.ison %] - [% FOREACH group = groups %] [% IF NOT group.mandatory %] [% IF NOT emitted_description %] [% emitted_description = 1 %] @@ -430,7 +415,7 @@ [% END %] [% END %] - [% IF NOT user.inallgroups %] + [% IF NOT inallgroups %] Only members of a group can change the visibility of a bug for that group @@ -438,7 +423,7 @@
[% END %] - [% IF bug.inagroup %] + [% IF inagroup %]

Users in the roles selected below can always view this bug:
@@ -472,16 +457,16 @@ [% knum = 1 %] [% IF bug.bug_status == "UNCONFIRMED" && - user.canconfirm %] + bug.user.canconfirm %] Confirm bug (change status to NEW)
[% knum = knum + 1 %] [% END %] - [% IF user.canedit %] + [% IF bug.user.canedit %] [% IF bug.isopened %] - [% IF bug.bug_status != "ASSIGNED" && user.canconfirm %] + [% IF bug.bug_status != "ASSIGNED" && bug.user.canconfirm %] Accept bug ( [% "confirm bug, " IF bug.isunconfirmed %]change @@ -501,7 +486,7 @@ Resolve bug, changing resolution to @@ -523,9 +508,9 @@ (this.value != '')) { document.changeform.knob[[% knum %]].checked=true; }" - value="[% bug.assigned_to_email FILTER html %]"> + value="[% bug.assigned_to.email FILTER html %]">
- [% IF bug.isunconfirmed && user.canconfirm %] + [% IF bug.isunconfirmed && bug.user.canconfirm %]      and confirm bug (change status to NEW)
@@ -537,7 +522,7 @@ [% " and QA contact" IF Param('useqacontact') %] of selected component
- [% IF bug.isunconfirmed && user.canconfirm %] + [% IF bug.isunconfirmed && bug.user.canconfirm %]      and confirm bug (change status to NEW)
@@ -545,7 +530,7 @@ [% knum = knum + 1 %] [% ELSE %] [% IF bug.resolution != "MOVED" || - (bug.resolution == "MOVED" && user.canmove) %] + (bug.resolution == "MOVED" && bug.user.canmove) %] Reopen bug
[% knum = knum + 1 %] @@ -574,7 +559,7 @@
- [% IF user.canmove %] + [% IF bug.user.canmove %]   |   @@ -598,19 +583,11 @@


[% PROCESS bug/comments.html.tmpl - comments = bug.comments + comments = bug.longdescs mode = "edit" %] -
- -[% PROCESS bug/navigate.html.tmpl %] - -
- -[% PROCESS global/footer.html.tmpl %] - [%############################################################################%] [%# Block for dependencies #%] @@ -620,7 +597,7 @@ Bug [% bug.bug_id %] [%+ dep.title %]: [% FOREACH depbug = bug.${dep.fieldname} %] - [% GetBugLink(depbug, depbug) %][% " " %] + [% depbug FILTER bug_link(depbug) %][% " " %] [% END %] @@ -638,7 +615,7 @@