[%# 1.0@bugzilla.org %] [%# 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 # Toms Baugis # Olav Vitters # Max Kanat-Alexander #%] [% PROCESS "global/field-descs.none.tmpl" %] [% PROCESS global/header.html.tmpl title = "Full Text $terms.Bug Listing" h1 = "" style_urls = ["skins/standard/show_multiple.css", "skins/standard/buglist.css"] %] [% PROCESS bug/time.html.tmpl %] [% IF bugs.first %] [% FOREACH bug = bugs %] [% PROCESS bug_display %] [% END %] [% ELSE %]

You'd have more luck if you gave me some [% terms.bug %] numbers.

[% END %] [% PROCESS global/footer.html.tmpl %] [%###########################################################################%] [%# Block for an individual bug #%] [%###########################################################################%] [% BLOCK bug_display %]

[% terms.Bug %] [% bug.bug_id FILTER html %] [% IF Param("usebugaliases") AND bug.alias AND NOT bug.error %] ([% bug.alias FILTER html %]) [% END %]

[% IF bug.error %] [% ELSE %] [%# The rightcell block (also called by the row block) automatically shows # the fields from rightcells %] [% rightcells = ['reporter', 'assigned_to'] %] [% IF Param('useqacontact') %] [% rightcells.push('qa_contact') %] [% END %] [% rightcells.push('') %] [% IF bug.cc %] [% rightcells.push('cc') %] [% END %] [% IF bug.keywords %] [% rightcells.push('keywords') %] [% END %] [%# Determine if the bug has a flag %] [% FOREACH type = bug.flag_types %] [% IF type.flags.size %] [% rightcells.push('flags') %] [% LAST %] [% END %] [% END %] [% PROCESS row cell = "short_desc" fullrow = 1 %] [% PROCESS rightcell %] [% PROCESS row cell = "component" %] [% PROCESS rightcell %] [% PROCESS rightcell %] [% PROCESS rightcell %] [% PROCESS row cell = "version" %] [% PROCESS row cell = "target_milestone" IF Param('usetargetmilestone') %] [% PROCESS row cell = "rep_platform" %] [% PROCESS row cell = "op_sys" %] [% IF bug.bug_file_loc %] [% END %] [% IF Param("usestatuswhiteboard") %] [% PROCESS row cell = "status_whiteboard" fullrow = 1 %] [% END %] [% USE Bugzilla %] [% field_counter = 0 %] [% FOREACH field = Bugzilla.get_fields({ obsolete => 0, custom => 1 }) %] [% field_counter = field_counter + 1 %] [%# Odd-numbered fields get an opening %] [% '' IF field_counter % 2 %] [% PROCESS bug/field.html.tmpl value=bug.${field.name} editable=0 %] [%# Even-numbered fields get a closing %] [% '' IF !(field_counter % 2) %] [% END %] [%# And we have to finish the row if we ended on an odd number. %] [% '' IF field_counter % 2 %] [% IF (bug.dependson.size || bug.blocked.size) %] [% PROCESS dependencies name = "dependson" %] [% PROCESS dependencies name = "blocked" %] [% END %] [% IF user.in_group(Param("timetrackinggroup")) %] [% PROCESS row cell="deadline" %] [% END %] [% IF bug.attachments.size %] [% END %] [% END %]
[% IF bug.error == "InvalidBugId" %] '[%+ bug.bug_id FILTER html %]' is not a valid [% terms.bug %] number [%- IF Param("usebugaliases") %] nor a known [% terms.bug %] alias[% END %]. [% ELSIF bug.error == "NotPermitted" %] You are not allowed to view this [% terms.bug %]. [% ELSIF bug.error == "NotFound" %] This [% terms.bug %] cannot be found. [% ELSE %] [%+ bug.error FILTER html %] [% END %]
[% field_descs.product FILTER html %]: [% IF Param("useclassification") && bug.classification_id != 1 %] [[% bug.classification FILTER html %]]  [% END %] [% bug.product FILTER html %]
[% field_descs.bug_status FILTER html %]: [% status_descs.${bug.bug_status} FILTER html %] [%+ get_resolution(bug.resolution) FILTER html %]
[% field_descs.bug_severity FILTER html %]: [% bug.bug_severity FILTER html %]
[% field_descs.priority FILTER html %]: [% bug.priority FILTER html %]
[% field_descs.bug_file_loc FILTER html %]: [% IF bug.bug_file_loc.match("^(javascript|data)") %] [% bug.bug_file_loc FILTER html %] [% ELSE %] [% bug.bug_file_loc FILTER html %] [% END %]
Time tracking:
[% field_descs.estimated_time FILTER html %] [% field_descs.actual_time FILTER html %] [% field_descs.work_time FILTER html %] [% field_descs.remaining_time FILTER html %] [% field_descs.percentage_complete FILTER html %] Gain
[% PROCESS formattimeunit time_unit = bug.estimated_time %] [% PROCESS formattimeunit time_unit=(bug.remaining_time + bug.actual_time) %] [% PROCESS formattimeunit time_unit = bug.actual_time %] [% PROCESS formattimeunit time_unit = bug.remaining_time %] [% PROCESS calculatepercentage act = bug.actual_time rem = bug.remaining_time %] [% PROCESS formattimeunit time_unit=bug.estimated_time - (bug.actual_time + bug.remaining_time) %]
Attachments: [% IF bug.show_attachment_flags %] [% FOREACH attachment = bug.attachments %] [% END %]
Description Flags
[% attachment.description FILTER html %] [% "
" IF not loop.last() %]
[% IF attachment.flags.size == 0 %] none [% ELSE %] [% FOREACH flag = attachment.flags %] [% flag.setter.nick FILTER html %]: [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %] [% IF flag.status == "?" && flag.requestee %] ([% flag.requestee.nick FILTER html %]) [% END %][% ", " IF not loop.last() %] [% END %] [% END %]
[% ELSE %] [% FOREACH attachment = bug.attachments %] [% attachment.description FILTER html %] [% "
" IF not loop.last() %] [% END %] [% END %]

[% PROCESS bug/comments.html.tmpl comments = bug.longdescs %]
[% END %] [%###########################################################################%] [%# Block for standard table rows #%] [%###########################################################################%] [% BLOCK row %] [% field_descs.${cell} FILTER html %]: [% bug.${cell} FILTER html %] [% PROCESS rightcell IF !fullrow %] [% fullrow = 0 %] [% END %] [%############################################################################%] [%# Block for dependencies #%] [%############################################################################%] [% BLOCK dependencies %] [% terms.Bug %] [%+ field_descs.${name} FILTER html %]: [% FOREACH depbug = bug.${name} %] [% depbug FILTER bug_link(depbug) FILTER none %][% ", " IF not loop.last() %] [% END %] [% PROCESS rightcell %] [% END %] [%############################################################################%] [%# Block for cells shown right of the table #%] [%############################################################################%] [% BLOCK rightcell %] [% IF rightcells %] [% name = rightcells.shift %] [% IF name == "cc" %] [% field_descs.cc FILTER html %]: [% FOREACH c = bug.cc %] [% c FILTER html %][% ", " IF not loop.last() %] [% END %] [% ELSIF name == "reporter" || name == "assigned_to" || name == "qa_contact" %] [% field_descs.${name} FILTER html %]: [% bug.${name}.identity FILTER html %] [% ELSIF name == "flags" %] Flags: [% FOREACH type = bug.flag_types %] [% FOREACH flag = type.flags %] [% flag.setter.nick FILTER html %]: [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %] [%+ IF flag.status == "?" && flag.requestee %] ([% flag.requestee.nick FILTER html %]) [% END %]
[% END %] [% END %] [% ELSIF name != "" %] [% field_descs.${name} FILTER html %]: [% bug.${name} FILTER html %] [% ELSE %]     [% END %] [% END %] [% END %]