~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<distribution-upstream-bug-report
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  metal:use-macro="view/macro:page/main_only"
  i18n:domain="launchpad">

  <metal:heading fill-slot="head_epilogue">
    <style type="text/css">
    <!--
      td.amount a { display: block; }
      tr.good { background: #d7ffbf; }
      tr.bad { background: #ffbfbf; }
    -->
    </style>
  </metal:heading>

  <div metal:fill-slot="heading">
    <h1>
      Upstream bug report for
      <tal:distro replace="context/displayname" />
    </h1>
  </div>

  <div metal:fill-slot="main">
    <div class="top-portlet">
      <div tal:condition="not:view/has_upstream_report"
           id="no-lp-usage">
        This distribution does not use Launchpad for development.
      </div>
      <div tal:condition="view/has_upstream_report"
           id="lp-used">
        <tal:no-bugs tal:condition="not: view/data">
          <span tal:replace="context/displayname" /> has no bugs filed
          against it.
        </tal:no-bugs>

        <p tal:condition="view/data">
          See the
          <a href="https://wiki.ubuntu.com/Bugs/Upstream/UpstreamReport"
            >UpstreamReport wiki page</a>
          for information on how to read this report.
        </p>

        <table class="listing" id="upstream-report"
               tal:condition="view/data">
          <thead tal:define="links view/sort_order_links">
            <tr>
              <th>
                <a id="sort-dsp" tal:attributes="href links/dsp/link">Package</a>
                <img id="sortarrow-dsp" tal:attributes="src links/dsp/arrow" />
              </th>
              <th colspan="2">
                <a id="sort-product" tal:attributes="href links/product/link">Project</a>
                <img id="sortarrow-product" tal:attributes="src links/product/arrow" />
              </th>
              <th>
                <a id="sort-bugtracker-name"
                    tal:attributes="href links/bugtracker_name/link"
                >Bugtracker</a>
                <img id="sortarrow-bugtracker-name"
                    tal:attributes="src links/bugtracker_name/arrow" />
              </th>
              <th>
                <a id="sort-bug-supervisor-name"
                    tal:attributes="href links/bug_supervisor_name/link"
                >Upstream Contact</a>
                <img id="sortarrow-bug-supervisor-name"
                    tal:attributes="src links/bug_supervisor_name/arrow" />
              </th>
              <th class="amount">
                <a id="sort-open-bugs"
                    tal:attributes="href links/open_bugs/link">Open</a>
                <img id="sortarrow-open-bugs"
                    tal:attributes="src links/open_bugs/arrow" />
              </th>
              <th class="amount">
                <a id="sort-triaged-bugs"
                    tal:attributes="href links/triaged_bugs/link"
                >Triaged</a>
                <img id="sortarrow-triaged-bugs"
                    tal:attributes="src links/triaged_bugs/arrow" />
              </th>
              <th class="amount">
                <a id="sort-triaged-percentage"
                    tal:attributes="href links/triaged_bugs_percentage/link"
                >%</a>
                <img id="sortarrow-triaged-percentage"
                    tal:attributes="src links/triaged_bugs_percentage/arrow" />
              </th>
              <th class="amount">
                <a id="sort-triaged-delta"
                    tal:attributes="href links/triaged_bugs_delta/link"
                >&Delta;</a>
                <img id="sortarrow-triaged-delta"
                    tal:attributes="src links/triaged_bugs_delta/arrow" />
              </th>
              <th class="amount">
                <a id="sort-upstream-bugs"
                    tal:attributes="href links/upstream_bugs/link"
                >Upstream</a>
                <img id="sortarrow-upstream-bugs"
                    tal:attributes="src links/upstream_bugs/arrow" />
              </th>
              <th class="amount">
                <a id="sort-upstream-percentage"
                    tal:attributes="href links/upstream_bugs_percentage/link"
                >%</a>
                <img id="sortarrow-upstream-percentage"
                    tal:attributes="src links/upstream_bugs_percentage/arrow" />
              </th>
              <th class="amount">
                <a id="sort-upstream-delta"
                    tal:attributes="href links/upstream_bugs_delta/link"
                >&Delta;</a>
                <img id="sortarrow-upstream-delta"
                    tal:attributes="src links/upstream_bugs_delta/arrow" />
              </th>
              <th class="amount">
                <a id="sort-watched-bugs"
                    tal:attributes="href links/watched_bugs/link">Watch</a>
                <img id="sortarrow-watched-bugs"
                    tal:attributes="src links/watched_bugs/arrow" />
              </th>
              <th class="amount">
                <a id="sort-watched-percentage"
                    tal:attributes="href links/watched_bugs_percentage/link"
                >%</a>
                <img id="sortarrow-watched-percentage"
                    tal:attributes="src links/watched_bugs_percentage/arrow" />
              </th>
              <th class="amount">
                <a id="sort-watched-delta"
                    tal:attributes="href links/watched_bugs_delta/link"
                >&Delta;</a>
                <img id="sortarrow-watched-delta"
                    tal:attributes="src links/watched_bugs_delta/arrow" />
              </th>
              <th class="amount">
                <a id="sort-bugs-with-upstream-patches"
                    tal:attributes="href links/bugs_with_upstream_patches/link"
                >Patches for upstream</a>
                <img id="sortarrow-bugs-with-upstream-patches"
                    tal:attributes="src links/bugs_with_upstream_patches/arrow" />
              </th>
            </tr>
          </thead>
          <tbody id="upstream-report-content">
            <tr tal:repeat="item view/data" tal:attributes="class item/row_class">
              <td>
                <a tal:attributes="href item/dsp/fmt:url"
                   tal:content="item/dsp/name"></a>
              </td>
              <tal:has-product condition="item/product">
                <td style="padding-right: 0" align="center">
                  <a tal:attributes="href item/branch/fmt:url;
                     title string:You can use `bzr branch lp:${item/product/name}' to fetch this project's code"
                     tal:condition="item/branch">
                    <img alt="(branch)" src="/@@/branch" /></a>
                </td>
                <td style="padding-left: 0" align="center">
                  <a tal:attributes="href item/product/fmt:url"
                    ><img src="/@@/yes"
                        tal:attributes="title item/product/title" /></a>
                </td>
                <tal:has-bugtracker condition="item/bugtracker">
                  <td align="center">
                    <a tal:attributes="href item/bugtracker/fmt:url"
                       ><img src="/@@/yes"
                          tal:attributes="title item/bugtracker/title" /></a>
                  </td>
                </tal:has-bugtracker>
                <tal:has-no-bugtracker condition="not: item/bugtracker">
                  <td tal:condition="item/bug_tracking_usage/enumvalue:LAUNCHPAD"
                    align="center">
                      <img src="/@@/yes" title="Launchpad" />
                  </td>
                  <td tal:condition="not: item/bug_tracking_usage/enumvalue:LAUNCHPAD"
                    align="center">
                      <img src="/@@/no" title="Unknown" />
                      <a tal:condition="item/product/required:launchpad.Edit"
                         tal:attributes="href item/product_edit_url">
                         <small>(fix)</small></a></td>
                </tal:has-no-bugtracker>
                <tal:has-bug-supervisor condition="item/product/bug_supervisor">
                  <td align="center">
                    <a tal:attributes="href item/product/bug_supervisor/fmt:url"
                       ><img src="/@@/yes"
                          tal:attributes="title item/product/bug_supervisor/fmt:displayname"
                          /></a>
                  </td>
                </tal:has-bug-supervisor>
                <tal:has-no-bug-supervisor condition="not: item/product/bug_supervisor">
                  <td align="center">
                      <img src="/@@/no" title="Unspecified" />
                      <a tal:condition="item/product/required:launchpad.Edit"
                         tal:attributes="href item/bug_supervisor_url">
                        <small>(change)</small></a></td>
                </tal:has-no-bug-supervisor>
              </tal:has-product>
              <tal:has-no-product condition="not: item/product">
                  <td align="center" class="bad" colspan="4">
                      Missing corresponding project.
                      <a href="/projects"><small>(find)</small></a>
                      <a tal:attributes="href item/packaging_url">
                         <small>(link)</small></a>
                  </td>
              </tal:has-no-product>
              <td class="amount">
                <a tal:attributes="href item/open_bugs_url"
                   tal:content="item/open_bugs"></a>
              </td>
              <td tal:attributes="class string:amount ${item/triaged_bugs_class}">
                <a tal:attributes="href item/triaged_bugs_url"
                   tal:content="item/triaged_bugs"></a>
              </td>
              <td tal:attributes="class string:amount ${item/triaged_bugs_class}"
                  tal:content="item/triaged_bugs_percentage/fmt:float/.2" />
              <td tal:attributes="class string:amount ${item/triaged_bugs_class}">
                <a tal:attributes="href item/triaged_bugs_delta_url"
                   tal:content="item/triaged_bugs_delta"></a>
              </td>
              <td tal:attributes="class string:amount ${item/upstream_bugs_class}">
                <a tal:attributes="href item/upstream_bugs_url"
                   tal:content="item/upstream_bugs"></a>
              </td>
              <td tal:attributes="class string:amount ${item/upstream_bugs_class}"
                  tal:content="item/upstream_bugs_percentage/fmt:float/.2" />
              <td tal:attributes="class string:amount ${item/upstream_bugs_class}">
                <a tal:attributes="href item/upstream_bugs_delta_url"
                   tal:content="item/upstream_bugs_delta"></a>
              </td>
              <tal:upstream-in-launchpad
                  condition="item/bug_tracking_usage/enumvalue:LAUNCHPAD">
                  <td colspan="4" class="good">&nbsp;</td>
              </tal:upstream-in-launchpad>
              <tal:upstream-not-in-launchpad
                  condition="not: item/bug_tracking_usage/enumvalue:LAUNCHPAD">
                <td tal:attributes="class string:amount ${item/watched_bugs_class}"
                    tal:content="item/watched_bugs" />
                <td tal:attributes="class string:amount ${item/watched_bugs_class}"
                    tal:content="item/watched_bugs_percentage/fmt:float/.2" />
                <td tal:attributes="class string:amount ${item/watched_bugs_class}">
                  <a tal:attributes="href item/watched_bugs_delta_url"
                     tal:content="item/watched_bugs_delta"></a>
                </td>
                <td tal:attributes="class string:amount ${item/watched_bugs_class}">
                  <tal:has-bugs-with-upstream-patches
                      condition="item/bugs_with_upstream_patches">
                    <a tal:attributes="href item/bugs_with_upstream_patches_url"
                        tal:content="item/bugs_with_upstream_patches"></a>
                  </tal:has-bugs-with-upstream-patches>
                  <tal:has-no-bugs-with-upstream-patches
                      condition="not: item/bugs_with_upstream_patches">
                     -
                  </tal:has-no-bugs-with-upstream-patches>
                </td>
              </tal:upstream-not-in-launchpad>
            </tr>
          </tbody>
          <tfoot id="upstream-report-totals">
            <tr>
              <td colspan="5" class="amount"><b>Totals:</b></td>
              <td class="amount"
                  tal:content="view/total/open_bugs" />
              <td class="amount"
                  tal:content="view/total/triaged_bugs" />
              <td class="amount"
                  tal:content="view/total/triaged_bugs_percentage/fmt:float/.2" />
              <td class="amount"
                  tal:content="view/total/triaged_bugs_delta" />
              <td class="amount"
                  tal:content="view/total/upstream_bugs" />
              <td class="amount"
                  tal:content="view/total/upstream_bugs_percentage/fmt:float/.2" />
              <td class="amount"
                  tal:content="view/total/upstream_bugs_delta" />
              <td class="amount"
                  tal:content="view/total/watched_bugs" />
              <td class="amount"
                  tal:content="view/total/watched_bugs_percentage/fmt:float/.2" />
              <td class="amount"
                  tal:content="view/total/watched_bugs_delta" />
              <td class="amount"
                  tal:content="view/total/bugs_with_upstream_patches" />
            </tr>
          </tfoot>
        </table>

        <div tal:condition="view/data"
             align="right"><small>Top <span tal:content="view/data/count:len" />
          packages listed.</small></div>
      </div>
    </div>
  </div>

</distribution-upstream-bug-report>