<!-- 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 <terry@mozilla.org>
  #                 Gervase Markham <gerv@gerv.net>
  #%]

[% PROCESS global/header.html.tmpl 
  title = "Full Text Bug Listing"
  style_urls = [ "css/show_multiple.css" ]
%]
[% PROCESS bug/time.html.tmpl %]
[% IF bugs.first %]
  [% FOREACH bug = bugs %]
    [% PROCESS bug_display %]
  [% END %]
[% ELSE %]
  <p>
    You'd have more luck if you gave me some bug numbers.
  </p>
[% END %]


[% PROCESS global/footer.html.tmpl %]


[%###########################################################################%]
[%# Block for an individual bug                                             #%]
[%###########################################################################%]

[% BLOCK bug_display %]
  <img alt="" src="1x1.gif" width="1" height="80" align="left">
  <div align="center">
    <b>
      <font ="+3">Bug [% bug.bug_id %] - [% bug.short_desc FILTER html %]</font>
    </b>
  </div>

  <table width="100%">
    <tr>
      <td>
        <b>Bug#:</b>
        <a href="show_bug.cgi?id=[% bug.bug_id %]">[% bug.bug_id %]</a>
      </td>
      [% PROCESS cell attr = { description => "Product", 
                               name => "product" } %]
      [% PROCESS cell attr = { description => "Version", 
                               name => "version" } %]
      [% PROCESS cell attr = { description => "Platform", 
                               name => "rep_platform" } %]
    </tr>
    
    <tr>
      [% 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" } %]
    </tr>
    
    <tr>
      [% 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 %]
    </tr>
    
    <tr>
      <td colspan="2">
        <b>Component:</b>&nbsp;
        [% bug.component %]
      </td>
    
      <td colspan="2">
      [% IF Param('usetargetmilestone') %]
          <b>Target Milestone:</b>&nbsp;
          [% bug.target_milestone FILTER html %]
      [% END %]
      </td>
    </tr>
    
    <tr>
      <td colspan="4">
        <b>URL:</b>&nbsp;
        <a href="[% bug.bug_file_loc %]">[% bug.bug_file_loc FILTER html %]</a> 
    </tr>
    
    <tr>
      <td colspan="4">
        <b>Summary:</b>&nbsp;[% bug.short_desc FILTER html %]
      </td>
    </tr>
     
    [% IF use_keywords %]
      <tr>
        <td colspan="4">
          <b>Keywords: </b>&nbsp;[% bug.keywords FILTER html %]
        </td>
      </tr>
    [% END %]

    [% IF Param("usestatuswhiteboard") %]
      <tr>
        <td colspan="4">
          <b>Status Whiteboard:</b>&nbsp;
          [% bug.status_whiteboard FILTER html %]
        </td>
      </tr>
    [% END %]

    [% IF UserInGroup(Param("timetrackinggroup")) %]
      <tr>
        <td colspan="4">
          <b>Orig. Est.:</b>&nbsp;
          [% PROCESS formattimeunit time_unit=bug.estimated_time %]
          &nbsp;
          <b>Current Est.:</b>&nbsp;
          [% PROCESS formattimeunit 
                     time_unit=(bug.remaining_time + bug.actual_time) %]
          &nbsp;
          <b>Hours Worked:</b>&nbsp;
          [% PROCESS formattimeunit time_unit=bug.actual_time %]&nbsp;
          <b>Hours Left:</b>&nbsp;
          [% PROCESS formattimeunit time_unit=bug.remaining_time %]
          &nbsp;
          <b>Percentage Complete:</b>&nbsp;
          [% PROCESS calculatepercentage act=bug.actual_time 
                                         rem=bug.remaining_time %]&nbsp;
          <b>Gain</b>&nbsp;
          [% PROCESS formattimeunit 
                     time_unit=bug.estimated_time - (bug.actual_time + bug.remaining_time) %]
          &nbsp;
        </td>
      </tr>
    [% END %]

    <tr>
      <td colspan="4">
        <b>Description:</b>
      </td>
    </tr>
  </table>

  [% PROCESS bug/comments.html.tmpl 
     comments = bug.comments %]
  
  <hr>
[% END %]


[%###########################################################################%]
[%# Block for standard table cells                                          #%]
[%###########################################################################%]

[% BLOCK cell %]
  <td>
    <b>[% attr.description%]:</b>&nbsp;
    [% bug.${attr.name} FILTER html %]
  </td>
[% END %]