duplicates.html.tmpl 5.66 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
[%# 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 <gerv@gerv.net>
  #%]

[%# INTERFACE:
22
  # products: an array of product objects this user can see.
23
  #
24 25 26 27
  # sortby: string. the column on which we are sorting the buglist.
  # reverse: boolean. True if we are reversing the current sort.
  # maxrows: integer. Max number of rows to display.
  # changedsince: integer. The number of days ago for the changedsince column.
28
  # openonly: boolean. True if we are only showing open bugs.
29
  # query_products: list of strings. The set of products we check for dups.
30 31 32
  #
  # Additionally, you need to fulfill the interface to
  # duplicates-table.html.tmpl.
33
  #%]
34 35 36

[% PROCESS global/variables.none.tmpl %]

37
[% IF query_products.size %]
38 39 40
  [% title = BLOCK %]
    Most Frequently Reported [% terms.Bugs %] for [% query_products.join(', ') FILTER html %]
  [% END %]
41 42
[% ELSE %]
  [% title = "Most Frequently Reported $terms.Bugs" %]
43 44
[% END%]

45
[% PROCESS global/header.html.tmpl
46
   title = title
47 48
   style = ".resolved { background-color: #d9d9d9; color: #000000; }"
%]
49 50 51 52 53 54 55

<p>
  <a href="#explanation">What is this data?</a>
  <br>
  <a href="#params">Change parameters</a>
</p>

56
[% PROCESS "reports/duplicates-table.html.tmpl" %]
57 58 59 60 61 62 63 64

[%# *** Parameters *** %]

[% bug_ids_string = vis_bug_ids.join(',') %]

<h3><a name="params">Change Parameters</a></h3>

<form method="get" action="duplicates.cgi">
65
  <input type="hidden" name="sortby" value="[% sortby FILTER html %]">
66
  <input type="hidden" name="reverse" value="[% reverse %]">
67 68 69 70 71 72
  <input type="hidden" name="bug_id" value="[% bug_ids_string %]">
  <table>
    <tr>
      <td>When sorting or restricting,
          work with:</td>
      <td>
73
        <input type="radio" name="sortvisible" id="entirelist" value="0"
74
          [%+ "checked" IF NOT sortvisible %]>
75 76 77
        <label for="entirelist">
          entire list
        </label>
78 79
        <br>
        <input type="radio" name="sortvisible" id="visiblelist" value="1"
80
          [%+ "checked" IF sortvisible %]>
81 82 83 84 85 86
        <label for="visiblelist">
          currently visible list
        </label>
      </td>
      <td rowspan="4" valign="top">Restrict to products:</td>
      <td rowspan="4" valign="top">
87
        <select name="product" size="5" multiple="multiple">
88
          [% FOREACH p = products %]
89 90 91
            <option name="[% p.name FILTER html %]"
            [% " selected" IF lsearch(query_products, p.name) != -1 %]
            >[% p.name FILTER html %]</option>
92 93 94 95 96 97 98 99
          [% END %]
        </select>
      </td>
     </tr>

    <tr>
      <td>Max rows:</td>
      <td>
100
        <input size="4" name="maxrows" value="[% maxrows %]">
101 102 103 104 105 106
      </td>
    </tr>

    <tr>
      <td>Change column is change in the last:</td>
      <td>
107
        <input size="4" name="changedsince" value="[% changedsince %]"> days
108 109 110 111 112 113
      </td>
    </tr>

    <tr>
      <td>
        <label for="openonly">
114
          Open [% terms.bugs %] only:
115 116 117
        </label>
      </td>
      <td>
118
        <input type="checkbox" name="openonly" id="openonly" value="1"
119
          [%+ "checked" IF openonly %]>
120 121 122 123 124
      </td>
    </tr>

  </table>

125
  <input type="submit" id="change" value="Change">
126 127 128 129 130
</form>

<form method="post" action="buglist.cgi">
  <input type="hidden" name="bug_id" value="[% bug_ids_string %]">
  <input type="hidden" name="order" value="Reuse same sort as last time">
131 132
  Or just give this to me as a <input type="submit" id="list" 
                                value="[% terms.bug %] list">.
133 134 135
  (Note: the order may not be the same.)
</form>

136
<hr>
137 138

<b>
139
  <a name="explanation">What are "Most Frequently Reported [% terms.Bugs %]"?</a>
140 141 142
</b>

<blockquote>
143 144 145 146
  The Most Frequent [% terms.Bugs %] page lists the known open [% terms.bugs %] which
  are reported most frequently. It is
  automatically generated from the [% terms.Bugzilla %] database every 24 hours, by
  counting the number of direct and indirect duplicates of [% terms.bugs %].
147
  This information is provided in order to assist in minimizing
148 149
  the amount of duplicate [% terms.bugs %] entered into [% terms.Bugzilla %], which
  saves time for Quality Assurance engineers who have to triage the [% terms.bugs %].
150 151 152 153 154
</blockquote>

<b>How do I use this list?</b>

<ul>
155
  <li>Review the most frequent [% terms.bugs %] list.</li>
156
  <li>If your problem is listed:</li>
157 158

  <ul>
159
    <li>Click on the [% terms.bug %] number to confirm that you have found the
160 161
      same [% terms.bug %], and comment if you have additional information
      or move on with your testing of the product.
162 163 164
    </li>
  </ul>

165
  <li>If your problem not listed:</li>
166 167

  <ul>
168
    <li><a href="query.cgi">Try and locate a similar [% terms.bug %]</a>
169
        that has already been filed.</li>
170
    <li>If you find your [% terms.bug %] in [% terms.Bugzilla %],
171
        feel free to comment with any new or additional data you may have.</li>
172 173
    <li>If you cannot find your problem already documented in [% terms.Bugzilla %],
        <a href="enter_bug.cgi">file a new [% terms.bug %]</a>.</li>
174 175 176
  </ul>
</ul>

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