From fc6aa3c91fdcb1d9f11d05d9f13d1da8fce15b45 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Sun, 24 Mar 2002 01:58:36 +0000 Subject: Bug 110012 - show_bug templatisation. r=bbaetz, afranke. --- template/default/show/choose_bug.html.tmpl | 35 ++ template/default/show/navigate.html.tmpl | 53 +++ template/default/show/show_bug.html.tmpl | 527 +++++++++++++++++++++++++++++ 3 files changed, 615 insertions(+) create mode 100644 template/default/show/choose_bug.html.tmpl create mode 100644 template/default/show/navigate.html.tmpl create mode 100644 template/default/show/show_bug.html.tmpl (limited to 'template/default/show') diff --git a/template/default/show/choose_bug.html.tmpl b/template/default/show/choose_bug.html.tmpl new file mode 100644 index 000000000..1df89ce8f --- /dev/null +++ b/template/default/show/choose_bug.html.tmpl @@ -0,0 +1,35 @@ +[%# 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 + #%] + +[% UNLESS header_done %] + [% INCLUDE global/header + title = "Search by bug number" + %] +[% END %] + +
+

+ You may find a single bug by entering its bug id here: + + +

+
+ +[% INCLUDE global/footer %] diff --git a/template/default/show/navigate.html.tmpl b/template/default/show/navigate.html.tmpl new file mode 100644 index 000000000..685539e01 --- /dev/null +++ b/template/default/show/navigate.html.tmpl @@ -0,0 +1,53 @@ +[%# 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 + #%] + +[% IF bug_list.size > 0 %] + [% this_bug_idx = lsearch(bug_list, bug.bug_id) %] + Bug List: + [% IF this_bug_idx != -1 %] + ([% this_bug_idx + 1 %] of [% bug_list.size %]) + [% END %] + + First + Last + + [% IF this_bug_idx != -1 %] + [% IF this_bug_idx > 0 %] + [% prev_bug = this_bug_idx - 1 %] + Prev + [% ELSE %] + Prev + [% END %] + + [% IF this_bug_idx + 1 < bug_list.size %] + [% next_bug = this_bug_idx + 1 %] + Next + [% ELSE %] + Next + [% END %] + [% ELSE %] + (This bug is not in your list) + [% END %] + +   Show list +[% END %] + +     Query page +     Enter new bug diff --git a/template/default/show/show_bug.html.tmpl b/template/default/show/show_bug.html.tmpl new file mode 100644 index 000000000..13eb80034 --- /dev/null +++ b/template/default/show/show_bug.html.tmpl @@ -0,0 +1,527 @@ +[%# 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 + #%] + +[% UNLESS header_done %] + [% INCLUDE global/header + title = "Bug $bug.bug_id - $bug.short_desc" + h1 = "Bugzilla Bug $bug.bug_id" + h2 = bug.short_desc + extra = navigation_links() + %] +[% END %] + +[% PROCESS show/navigate.html.tmpl %] + +
+ +
+ + + + + +[%# *** Platform Reporter Product OS AddCC *** %] + + + + + + + + + + [% PROCESS select selname = "rep_platform" %] + + + + + + + + [% PROCESS select selname => "product" %] + + + [% PROCESS select selname => "op_sys" %] + + + + + +[%# *** Component Version CC Priority Severity AssignedTo Milestone *** %] + + + + + + + + + [% PROCESS select selname => "version" %] + + + + + + + + + + + + [% PROCESS select selname => "priority" %] + + + + + + + + + [% PROCESS select selname = "bug_severity" %] + + + + + + + + + [% IF Param("usetargetmilestone") && bug.target_milestone %] + + [% PROCESS select selname = "target_milestone" %] + [% ELSE %] + + [% END %] + + +[%# *** QAContact URL Summary Whiteboard Keywords *** %] + + [% IF Param('useqacontact') %] + + + + + [% END %] + + + + + + + + + + + + [% IF Param('usestatuswhiteboard') %] + + + + + [% END %] + + [% IF use_keywords %] + + + + [% END %] +
+ Bug#: + + + [% bug.bug_id %] +   + Platform: + + Reporter: + + [% bug.reporter %] +
+ Product: + + OS: + + Add CC: + + +
+ + + Component: + + + +   + Version: + + CC: + + [% IF bug.cc %] + +
+ Remove selected CCs +
+ [% ELSE %] + + [% END %] +
+ + Status: + + [% bug.bug_status %]  + Priority: +
+ + Resolution: + + [% bug.resolution %]  + Severity: +
+ + Assigned To: + + [% bug.assigned_to %]  + + Target Milestone: + +  
+ QA Contact: + + +
+ + [% IF bug.url %] + URL: + [% ELSE %] + URL: + [% END %] + + +
+ Summary: + + +
+ Status Whiteboard: + + +
+ + Keywords: + + + +
+ +[%# *** Attachments *** %] + + [% INCLUDE attachment/list.atml + attachments = bug.attachments %] + +[%# *** Dependencies Votes *** %] + + [% IF Param('usedependencies') %] + + + [% PROCESS dependencies + dep = { title => "depends on", fieldname => "dependson" } %] + + + + + [% PROCESS dependencies + dep = { title => "blocks", fieldname => "blocked" } %] + +
+ Show + dependency tree + + [% IF Param('webdotbase') %] +
+ Show + dependency graph + [% END %] +
+ [% END %] + + [% IF use_votes %] + + + + + +
+ Votes: + + [% bug.votes %]    + Show votes for this + bug    + Vote for this bug +
+ [% END %] + +[%# *** Comments Groups *** %] + +
+ Additional Comments: +
+ +
+ + [% IF groups %] +
+ Only users in the selected groups can view this bug: +
+ (Unchecking all boxes makes this a public bug.) +
+
+ + [% FOREACH group = groups %] +      + + [% group.description %] +
+ [% END %] + + [% IF NOT user.inallgroups %] + + Only members of a group can change the visibility of a bug for + that group + +
+ [% END %] + + [% IF bug.inagroup %] +

+ But users in the roles selected below can always view this bug: +
+ + (The assignee + [% IF (Param('useqacontact')) %] + and qa contact + [% END %] + can always see a bug, and this section does not take effect unless + the bug is restricted to at least one group.) + +

+ +

+ Reporter + CC List +

+ [% END %] + [% END %] + +[%# *** Knob *** %] + +
+ + Leave as [% bug.bug_status %] [% bug.resolution %] +
+ + [% knum = 1 %] + + [% IF bug.bug_status == "UNCONFIRMED" && + (user.canedit || user.canconfirm) %] + + Confirm bug (change status to NEW) +
+ [% knum = knum + 1 %] + [% END %] + + [% IF user.canedit %] + [% IF bug.isopened %] + [% IF bug.bug_status != "ASSIGNED" %] + + Accept bug ( + [% "confirm bug, " IF bug.isunconfirmed %]change + status to ASSIGNED) +
+ [% knum = knum + 1 %] + [% END %] + + [% IF bug.resolution %] + + Clear the resolution (remove the current resolution of + [% bug.resolution %])
+ [% knum = knum + 1 %] + [% END %] + + + Resolve bug, changing resolution to + +
+ [% knum = knum + 1 %] + + + Resolve bug, mark it as duplicate of bug # + +
+ [% knum = knum + 1 %] + + + Reassign bug to + +
+ [% IF bug.isunconfirmed %] +      + and confirm bug (change status to NEW) +
+ [% END %] + [% knum = knum + 1 %] + + + Reassign bug to owner + [% "and QA contact" IF useqacontact %] + of selected component +
+ [% IF bug.isunconfirmed %] +      + and confirm bug (change status to NEW) +
+ [% END %] + [% knum = knum + 1 %] + [% ELSE %] + [% IF bug.resolution != "MOVED" || + (bug.resolution == "MOVED" && user.canmove) %] + Reopen bug +
+ [% knum = knum + 1 %] + [% END %] + [% IF bug.bug_status == "RESOLVED" %] + + Mark bug as VERIFIED
+ [% knum = knum + 1 %] + [% END %] + [% IF bug.bug_status != "CLOSED" %] + + Mark bug as CLOSED
+ [% knum = knum + 1 %] + [% END %] + [% END %] + [% END %] + + + +

+ + + View Bug Activity +   |   + Format For Printing + + + + [% IF user.canmove %] +   |   + + [% END %] +

+
+ +[%# *** Additional Comments *** %] + + + + + + +
+ + Description: + + + Opened: [% bug.creation_ts %] +
+
+ +[% PROCESS show/comments.tmpl %] + +
+ +[% PROCESS show/navigate.html.tmpl %] + +
+ +[% INCLUDE global/footer %] + + +[%############################################################################%] +[%# Block for dependencies #%] +[%############################################################################%] + +[% BLOCK dependencies %] + Bug [% bug.bug_id %] [%+ dep.title %]: + + [% FOREACH depbug = bug.${dep.fieldname} %] + [% GetBugLink(depbug, depbug) %][% " " %] + [% END %] + + + + +[% END %] + + +[%############################################################################%] +[%# Block for SELECT fields #%] +[%############################################################################%] + +[% BLOCK select %] + + + +   +[% END %] -- cgit v1.2.3-24-g4f1b