show-multiple.html.tmpl 6.23 KB
Newer Older
1
[%# 1.0@bugzilla.org %]
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
[%# 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>
  #%]

23 24 25 26
[% PROCESS global/variables.none.tmpl %]

[% PROCESS global/header.html.tmpl
  title = "Full Text $terms.Bug Listing"
27
  style_urls = [ "skins/standard/show_multiple.css" ]
28
%]
29
[% PROCESS bug/time.html.tmpl %]
30 31 32 33 34 35
[% IF bugs.first %]
  [% FOREACH bug = bugs %]
    [% PROCESS bug_display %]
  [% END %]
[% ELSE %]
  <p>
36
    You'd have more luck if you gave me some [% terms.bug %] numbers.
37 38 39
  </p>
[% END %]

40

41
[% PROCESS global/footer.html.tmpl %]
42 43 44 45 46 47 48 49 50


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

[% BLOCK bug_display %]
  <div align="center">
    <b>
51
      <font size="+3">[% terms.Bug %] [%+ bug.bug_id %] - [% bug.short_desc FILTER html %]</font>
52 53 54 55 56 57
    </b>
  </div>

  <table width="100%">
    <tr>
      <td>
58
        <b>[% terms.Bug %]#:</b>
59
        <a href="show_bug.cgi?id=[% bug.bug_id %]">[% bug.bug_id %]</a>
60 61 62
        [% IF Param("usebugaliases") AND bug.alias %]  
          ([% bug.alias FILTER html %])
        [% END %]
63
      </td>
64 65 66 67 68 69 70 71
      <td>
        <b> Product: </b>&nbsp;
        [% IF Param("useclassification") %]
          [[% bug.classification FILTER html %]]&nbsp;
        [% END %]
        [% bug.product FILTER html %]
      </td>

72
      [% PROCESS cell attr = { description => "Version",
73
                               name => "version" } %]
74
      [% PROCESS cell attr = { description => "Platform",
75 76
                               name => "rep_platform" } %]
    </tr>
77

78
    <tr>
79
      [% PROCESS cell attr = { description => "OS/Version",
80
                               name => "op_sys" } %]
81
      [% PROCESS cell attr = { description => "Status",
82
                               name => "bug_status" } %]
83
      [% PROCESS cell attr = { description => "Severity",
84
                               name => "bug_severity" } %]
85
      [% PROCESS cell attr = { description => "Priority",
86 87
                               name => "priority" } %]
    </tr>
88

89
    <tr>
90
      [% PROCESS cell attr = { description => "Resolution",
91
                               name => "resolution" } %]
92 93 94 95 96 97 98 99
      <td>
        <b>Assigned To:</b>&nbsp;
        [% bug.assigned_to.login FILTER html %]
      </td>
      <td>
        <b>Reported By:</b>&nbsp;
        [% bug.reporter.login FILTER html %]
      </td>
100
      [% IF Param('useqacontact') %]
101 102 103 104
        <td>
          <b>QA Contact:</b>&nbsp;
          [% bug.qa_contact.login FILTER html %]
        </td>
105 106
      [% END %]
    </tr>
107

108 109 110
    <tr>
      <td colspan="2">
        <b>Component:</b>&nbsp;
111
        [% bug.component FILTER html %]
112
      </td>
113

114 115 116 117 118 119 120
      <td colspan="2">
      [% IF Param('usetargetmilestone') %]
          <b>Target Milestone:</b>&nbsp;
          [% bug.target_milestone FILTER html %]
      [% END %]
      </td>
    </tr>
121

122 123 124
    <tr>
      <td colspan="4">
        <b>URL:</b>&nbsp;
125 126 127 128 129 130 131
        [% IF bug.bug_file_loc 
           AND NOT bug.bug_file_loc.match("^(javascript|data)") %]
          <a href="[% bug.bug_file_loc FILTER html %]">
                   [% bug.bug_file_loc FILTER html %]</a>
        [% ELSE %]
          [% bug.bug_file_loc FILTER html %]
        [% END %]
132
    </tr>
133

134 135 136 137 138
    <tr>
      <td colspan="4">
        <b>Summary:</b>&nbsp;[% bug.short_desc FILTER html %]
      </td>
    </tr>
139

140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
    [% 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 %]

157 158 159 160 161 162 163
    [% 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;
164
          [% PROCESS formattimeunit
165 166 167 168 169 170 171 172
                     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;
173
          [% PROCESS calculatepercentage act=bug.actual_time
174 175
                                         rem=bug.remaining_time %]&nbsp;
          <b>Gain</b>&nbsp;
176
          [% PROCESS formattimeunit
177 178
                     time_unit=bug.estimated_time - (bug.actual_time + bug.remaining_time) %]
          &nbsp;
179 180
          <b>Deadline:</b>&nbsp;
          [% bug.deadline %]
181 182 183 184
        </td>
      </tr>
    [% END %]

185 186 187 188 189 190
    <tr>
      <td colspan="4">
        <b>Opened:</b>&nbsp;
        [% bug.creation_ts FILTER time %]
      </td>
    </tr>
191 192 193 194 195 196 197
    <tr>
      <td colspan="4">
        <b>Description:</b>
      </td>
    </tr>
  </table>

198
  [% PROCESS bug/comments.html.tmpl
199
     comments = bug.longdescs %]
200

201 202 203 204 205 206 207 208 209 210
  <hr>
[% END %]


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

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