1[%# This Source Code Form is subject to the terms of the Mozilla Public
2  # License, v. 2.0. If a copy of the MPL was not distributed with this
3  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4  #
5  # This Source Code Form is "Incompatible With Secondary Licenses", as
6  # defined by the Mozilla Public License, v. 2.0.
7  #%]
8
9[%# INTERFACE:
10  # sortby: string. the column on which we are sorting the buglist.
11  # reverse: boolean. True if we are reversing the current sort.
12  # maxrows: integer. Max number of rows to display.
13  # changedsince: integer. The number of days ago for the changedsince column.
14  # openonly: boolean. True if we are only showing open bugs.
15  # product: array of strings. The set of products we check for dups.
16  #
17  # Additionally, you need to fulfill the interface to
18  # duplicates-table.html.tmpl.
19  #%]
20
21[% IF product.size %]
22  [% title = BLOCK %]
23    Most Frequently Reported [% terms.Bugs %] for
24    [%+ product.join(', ') FILTER html %]
25  [% END %]
26[% ELSE %]
27  [% title = "Most Frequently Reported $terms.Bugs" %]
28[% END%]
29
30[% PROCESS global/header.html.tmpl
31   title = title
32   style_urls = ['skins/standard/duplicates.css']
33%]
34
35<p>
36  <a href="#explanation">What is this data?</a>
37  <br>
38  <a href="#params">Change parameters</a>
39</p>
40
41[% PROCESS "reports/duplicates-table.html.tmpl" %]
42
43[%# *** Parameters *** %]
44
45[% bug_ids_string = bug_ids.join(',') %]
46
47<h3 id="params">Change Parameters</h3>
48
49<form method="get" action="duplicates.cgi">
50  <input type="hidden" name="sortby" value="[% sortby FILTER html %]">
51  <input type="hidden" name="reverse" value="[% reverse FILTER html %]">
52  <input type="hidden" name="bug_id" value="[% bug_ids_string FILTER html %]">
53  <table>
54    <tr>
55      <td>When sorting or restricting, work with:</td>
56      <td>
57        <input type="radio" name="sortvisible" id="entirelist" value="0"
58          [% ' checked="checked"' IF NOT sortvisible %]>
59        <label for="entirelist">
60          entire list
61        </label>
62        <br>
63        <input type="radio" name="sortvisible" id="visiblelist" value="1"
64          [% ' checked="checked"' IF sortvisible %]>
65        <label for="visiblelist">
66          currently visible list
67        </label>
68      </td>
69      <td rowspan="4" valign="top">Restrict to products:</td>
70      <td rowspan="4" valign="top">
71        <select name="product" size="5" multiple="multiple">
72          [% FOREACH p = user.get_selectable_products %]
73            <option name="[% p.name FILTER html %]"
74            [% ' selected="selected"' IF product.contains(p.name) %]
75            >[% p.name FILTER html %]</option>
76          [% END %]
77        </select>
78      </td>
79     </tr>
80
81    <tr>
82      <td><label for="maxrows">Max rows:</label></td>
83      <td>
84        <input size="4" name="maxrows" id="maxrows"
85               value="[% maxrows FILTER html %]">
86      </td>
87    </tr>
88
89    <tr>
90      <td>
91        <label for="changedsince">Change column is change in the last:</label>
92      </td>
93      <td>
94        <input size="4" name="changedsince" id="changedsince"
95               value="[% changedsince FILTER html %]"> days
96      </td>
97    </tr>
98
99    <tr>
100      <td>
101        <label for="openonly">
102          Open [% terms.bugs %] only:
103        </label>
104      </td>
105      <td>
106        <input type="checkbox" name="openonly" id="openonly" value="1"
107          [% ' checked="checked"' IF openonly %]>
108      </td>
109    </tr>
110
111  </table>
112
113  <input type="submit" id="change" value="Change">
114</form>
115
116<form method="post" action="buglist.cgi">
117  <input type="hidden" name="bug_id" value="[% bug_ids_string FILTER html %]">
118  Or just give this to me as a <input type="submit" id="list"
119                                      value="[% terms.bug %] list">.
120  (Note: the order may not be the same.)
121</form>
122
123<hr>
124
125<h3 id="explanation">
126  What are "Most Frequently Reported [% terms.Bugs %]"?
127</h3>
128
129<p>
130  The Most Frequent [% terms.Bugs %] page lists the known open
131  [%+ terms.bugs %] which are reported most frequently,
132  counting the number of direct and indirect duplicates of [% terms.bugs %].
133  This information is provided in order to assist in minimizing
134  the amount of duplicate [% terms.bugs %] entered into [% terms.Bugzilla %],
135  which saves time for Quality Assurance engineers who have to triage
136  the [% terms.bugs %].
137</p>
138
139<b>How do I use this list?</b>
140
141<ul>
142  <li>Review the most frequent [% terms.bugs %] list.</li>
143  <li>If your problem is listed:</li>
144
145  <ul>
146    <li>Click on the [% terms.bug %] number to confirm that you have found the
147      same [% terms.bug %], and comment if you have additional information
148      or move on with your testing of the product.
149    </li>
150  </ul>
151
152  <li>If your problem not listed:</li>
153
154  <ul>
155    <li><a href="query.cgi">Try and locate a similar [% terms.bug %]</a>
156      that has already been filed.</li>
157    <li>If you find your [% terms.bug %] in [% terms.Bugzilla %],
158      feel free to comment with any new or additional data you may have.</li>
159    <li>If you cannot find your problem already documented in
160      [%+ terms.Bugzilla %],
161      <a href="enter_bug.cgi">file a new [% terms.bug %]</a>.</li>
162  </ul>
163</ul>
164
165[% PROCESS global/footer.html.tmpl %]
166