~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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<html
  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_side"
>
  <body>
    <metal:block fill-slot="head_epilogue">
      <script type='text/javascript' tal:content="string:var yui_base='${yui}';" />
      <script type='text/javascript' id='available-official-tags-js'
              tal:content="view/available_official_tags_js" />
      <tal:subscriptions-js
          define="enabled features/malone.advanced-subscriptions.enabled">
        <script type="text/javascript" id="use-advanced-subscriptions"
            tal:condition="enabled">
          use_advanced_subscriptions = true;
        </script>
        <script type="text/javascript" id="use-advanced-subscriptions"
            tal:condition="not:enabled">
          use_advanced_subscriptions = false;
        </script>
      </tal:subscriptions-js>
      <tal:if condition="context/bug/private">
        <script type="text/javascript">
          var bug_private = true;
        </script>
      </tal:if>
      <tal:if condition="not:context/bug/private">
        <script type="text/javascript">
          var bug_private = false;
        </script>
      </tal:if>
      <tal:if condition="request/features/bugs.private_notification.enabled">
        <script type="text/javascript">
          var bugs_private_notification_enabled = true;
        </script>
      </tal:if>
      <tal:if condition="not:request/features/bugs.private_notification.enabled">
        <script type="text/javascript">
          var bugs_private_notification_enabled = false;
        </script>
      </tal:if>
      <script type="text/javascript">
        LPS.use('base', 'node', 'oop', 'event', 'lp.bugs.bugtask_index',
                'lp.bugs.bugtask_index.portlets',
                'lp.code.branchmergeproposal.diff', 'lp.comments.hide',
                function(Y) {
            Y.lp.bugs.bugtask_index.portlets.use_advanced_subscriptions =
                use_advanced_subscriptions;
            Y.lp.bugs.bugtask_index.setup_bugtask_index();
            Y.on('load', function(e) {
                Y.lp.code.branchmergeproposal.diff.connect_diff_links();
            }, window);
            Y.on('domready', function() {
                LP.cache.comment_context = LP.cache.bug;
                Y.lp.comments.hide.setup_hide_controls();
            });
         });
      </script>
      <style type="text/css">
        /* Align the 'add comment' link to the right of the comment box. */
        #add-comment-form textarea { width: 100%; }
        #add-comment-form { max-width: 60em; padding-bottom: 4em; }
        #add-comment-form .actions {float: right;}
        .bug-branch-summary dd { font-size: 85% }
        a#privacy-link:link:hover, a#privacy-link:visited:hover {text-decoration:none;}
      </style>
      <style type="text/css">
        .yui3-overlay .value label  {
          /* It normally makes sense for form labels to be bold, but since
          this form consists only of radio buttons, there's nothing but labels
          so we just get wall-to-wall bold. */
          font-weight: normal !important;
        }
      </style>
    </metal:block>

    <metal:side fill-slot="side" tal:define="context_menu context/menu:context">
      <div tal:replace="structure context/bug/@@+portlet-privacy" />
      <div tal:replace="structure context/bug/@@+portlet-actions" />
      <div tal:replace="structure context/bug/@@+portlet-duplicates" />
      <div tal:replace="structure context/bug/@@+portlet-subscription" />
      <div tal:replace="structure context/bug/@@+portlet-subscribers" />
      <div tal:replace="structure context/bug/@@+portlet-questions" />
      <div tal:replace="structure context/bug/@@+portlet-specs" />
      <div tal:replace="structure context/bug/@@+portlet-attachments" />
      <div tal:replace="structure context/bug/@@+portlet-watch" />
    </metal:side>

    <tal:registering metal:fill-slot="registering">
      Reported by
      <tal:reporter replace="structure context/bug/owner/fmt:link" />
      <span
        tal:attributes="title context/bug/datecreated/fmt:datetime"
        tal:content="context/bug/datecreated/fmt:displaydate" />
    </tal:registering>

    <metal:heading fill-slot="heading" tal:define="context_menu context/menu:context">
      <h1 tal:replace="structure view/bug_title_edit_widget">
        Bug title
      </h1>
    </metal:heading>

    <div metal:fill-slot="main" tal:define="context_menu context/menu:context">
      <tal:if condition="request/features/bugs.private_notification.enabled">
          <div tal:attributes="class string: global-notification ${view/privacy_notice_classes}">
            <span class="sprite notification-private"></span>
            This bug is private
            <a href="#" class="global-notification-close">
              <span class="sprite notification-close"></span>
              Hide
            </a>
          </div>
      </tal:if>
      <div id="tags-autocomplete">
       <div id="tags-autocomplete-content"></div>
      </div>

      <p class="informational message"
         tal:condition="view/notices"
         tal:repeat="notice view/notices"
         tal:content="notice">
        Reported this bug as also occurring in upstream firefox
      </p>

      <p
         id="can-expire"
         tal:condition="python: context.bug.isExpirable(days_old=0)"
         >
        <tal:expiration_message replace="view/expiration_message" />
        (<a href="https://help.launchpad.net/BugExpiry">find out why</a>)
      </p>

      <p id="bug-is-question" class="informational message"
         tal:condition="context/bug/getQuestionCreatedFromBug"
         tal:define="question context/bug/getQuestionCreatedFromBug">
        This bug report was converted into a question:
        question #<tal:question-id replace="question/id" />:
        <a href=""
           tal:attributes="href question/fmt:url"
           tal:content="question/title">%s</a>.
        <tal:XXX condition="nothing">
          # XXX mpt 20080716 bug=249094: This should be an alert only when
          # you have just now converted the report into a question.
        </tal:XXX>
      </p>

      <div style="float: right;">
        <tal:heat replace="structure view/bug_heat_html" />
      </div>

      <div tal:replace="structure context/bug/@@+bugtasks-and-nominations-table" />

      <div id="maincontentsub">
        <div><!-- id="nonportlets"> -->
        <div class="top-portlet">

      <div class="report">
        <tal:description
            define="global description context/bug/description/fmt:obfuscate-email/fmt:text-to-html" />

        <tal:widget replace="structure view/bug_description_html"/>

        <div style="margin:-20px 0 20px 5px" class="clearfix">
          <span tal:condition="view/wasDescriptionModified"
          >See <a href="comments/0">original description</a></span>
        </div>

          <div id="bug-tags"
               tal:attributes="class python: (context.bug.tags and
                                             'tags-show' or 'tags-hide')">
            Tags:
            <span id="tag-list">
              <a tal:repeat="tag view/official_tags"
                 tal:content="tag"
                 class="official-tag"
                 tal:attributes="href string:${context/target/fmt:url}/+bugs?field.tag=${tag}">tag</a>
              <a tal:repeat="tag view/unofficial_tags"
                 tal:content="tag"
                 class="unofficial-tag"
                 tal:attributes="href string:${context/target/fmt:url}/+bugs?field.tag=${tag}">tag</a>
            </span>
            <form id="tags-form" style="display: inline">
                <input type="text" id="tag-input" style="display: none; width: 35em;" />
                <img src="/@@/spinner" id="tags-edit-spinner" style="display: none" />
                <a href="+edit" title="Edit tags" id="edit-tags-trigger" class="sprite edit"></a>
              <script type="text/javascript">
                  LPS.use('event', 'node', 'lp.bugs.bug_tags_entry', function(Y) {
                      // XXX intellectronica 2009-04-16 bug #362309:
                      // The load event fires very late on bug pages that take a
                      // long time to render, but we prefer to use it since the
                      // domready event isn't reliable in YUI3 yet. To make sure
                      // that user doesn't click the trigger and navigates to the
                      // non-JS form, we first disable the link. This is awful and
                      // must be fixed as soon as YUI3 is fixed.
                      if (LP.links['me'] !== undefined) {
                          Y.one('#edit-tags-trigger').on('click', function(e) {
                              e.halt();
                          });
                      }
                      Y.on('load',
                           function(e) {
                               Y.lp.bugs.bug_tags_entry.setup_tag_entry(
                                   available_official_tags);
                           },
                           window);
                  });
              </script>

              <button class="lazr-pos lazr-btn yui-ieditor-submit_button"
                      id="edit-tags-ok" style="display: none"
                      type="button">Ok</button>
              <button class="lazr-neg lazr-btn yui-ieditor-cancel_button"
                      id="edit-tags-cancel" style="display: none"
                      type="button">Cancel</button>
           </form>
           <a href="/+help/tag-help.html" target="help" class="sprite maybe">&nbsp;
             <span class="invisible-link">Tag help</span></a>
          </div>
          <div id="add-bug-tags"
               tal:attributes="class python: (not(context.bug.tags) and
                                             'tags-show' or 'tags-hide')">
            <a href="+edit" title="Add tags" id="add-tags-trigger" class="sprite add">
              Add tags
            </a>
            <a href="/+help/tag-help.html" target="help" class="sprite maybe">&nbsp;
             <span class="invisible-link">Tag help</span></a>
          </div>

        <div class="clearfix"></div>
      </div>

      <div id="branches-and-cves">
        <div id="bug-branches-container"
            style="float: left">
          <tal:branches
              define="linked_branches view/linked_branches"
              condition="linked_branches">

            <div id="bug-branches">
              <h2>Related branches</h2>

              <tal:bug-branches repeat="linked_branch linked_branches">
                <tal:bug-branch replace="structure linked_branch/@@+bug-branch" />
              </tal:bug-branches>
            </div>
          </tal:branches>
        </div><!-- bug-branch-container -->

        <div tal:condition="context/bug/has_cves" class="cves">
          <h2>CVE References</h2>
          <ul>
            <li class="sprite cve" tal:repeat="cve context/bug/cves">
              <a tal:attributes="href cve/fmt:url;
                                 title cve/description/fmt:shorten/40"
                 tal:content="cve/sequence"
                 >2002-1342</a>
            </li>
          </ul>
        </div>

        <div class="clearfix"></div>
      </div> <!-- branches and CVEs -->

      <tal:comments>
        <tal:comment repeat="comment_or_activity view/activity_and_comments">
          <tal:is-comment
              define="comment comment_or_activity/comment|nothing"
              condition="comment">
            <tal:comment-box replace="structure comment/@@+box" />
          </tal:is-comment>

          <tal:is-activity
              define="activity_list comment_or_activity/activity|nothing;
                      activity_date comment_or_activity/date|nothing;
                      activity_person comment_or_activity/person|nothing"
              condition="activity_list">
              <metal:comment-box
                  metal:use-macro="context/@@bugcomment-macros/activity-box" />
          </tal:is-activity>

          <tal:is-break
             define="num_hidden comment_or_activity/num_hidden|nothing"
             condition="num_hidden">
              <metal:comment-box
                  metal:use-macro="context/@@bugcomment-macros/break" />
          </tal:is-break>

        </tal:comment>
        <div style="float: right;">
          <tal:activity_log
              define="context_menu context/menu:context"
              content="structure context_menu/activitylog/render" />
        </div>
        <div class="clearfix"></div>

        <tal:comment-list-complete
            tal:condition="not:view/visible_comments_truncated_for_display">
          <tal:logged-in condition="view/user">
            <div tal:define="comment_form nocall:context/@@+addcomment-form;
                 dummy comment_form/initialize"
                 id="add-comment-form">
              <div
                  tal:condition="context/bug/duplicateof"
                  class="warning message"
                  id="warning-comment-on-duplicate">
                  Remember, this bug report is a duplicate of
      <a
        tal:define="duplicateof context/bug/duplicateof"
        tal:condition="duplicateof/required:launchpad.View"
        tal:attributes="href duplicateof/fmt:url; title
           duplicateof/title; style string:margin-right: 4px;
           id string:duplicate-of-warning-link;"
        tal:content="string:bug #${duplicateof/id}."
      >bug #42</a>
        <span
          tal:define="duplicateof context/bug/duplicateof"
          tal:condition="not:duplicateof/required:launchpad.View"
          tal:replace="string: a private bug." />
                  Comment here only if you think the duplicate status is wrong.
              </div>
              <h2>Add comment</h2>
              <form action="+addcomment"
                    method="post"
                    enctype="multipart/form-data"
                    accept-charset="UTF-8">
                <tal:comment-input
                  replace="structure comment_form/widgets/comment" />
                <div class="actions"
                  tal:content="structure
                  comment_form/actions/field.actions.save/render" />
              </form>
              <script type="text/javascript">
                LPS.use('lp.app.comment', function(Y) {
                    var comment = new Y.lp.app.comment.Comment();
                    comment.render();
                });
              </script>
            </div>
            <tal:attachment-link
                define="add_attachment_link context_menu/addcomment"
                replace="structure add_attachment_link/render" />
          </tal:logged-in>

          <tal:not-logged-in condition="not: view/user">
            <div align="center" id="add-comment-login-first">
              To post a comment you must <a
              href="+login?comments=all">log in</a>.
            </div>
          </tal:not-logged-in>
        </tal:comment-list-complete>
        <tal:comment-list-truncated
            tal:condition="view/visible_comments_truncated_for_display">
          <div class="informational message">
            Displaying first <span
            tal:replace="view/visible_initial_comments">23</span>
            and last <span
            tal:replace="view/visible_recent_comments">32</span>
            comments.
            <tal:what-next
                define="view_all_href
                        string:${context/fmt:url}?comments=all">
              <a href="#" tal:attributes="href view_all_href">
                View all <span
                tal:replace="view/total_comments" />
                comments</a> or <a href="#" tal:attributes="href
                view_all_href">add a comment</a>.
            </tal:what-next>
          </div>
        </tal:comment-list-truncated>
      </tal:comments>

      <div class="related">
        <h2>What next?</h2>
        <ul>
          <li>
            <a
                tal:attributes="href string:${context/target/fmt:url}/+filebug"
                >Report another bug</a>
            about <tal:context replace="context/target/displayname" />
          </li>
          <li>
            <a
                tal:attributes="href string:${context/target/fmt:url}/+bugs"
                >List open bugs</a>
            for <tal:context replace="context/target/displayname" />
          </li>
        </ul>
      </div>

      </div><!-- class="top-portlet" -->
        </div><!-- id="nonportlets"-->
      </div><!--- id="maincontentsub"-->
      <div>
        <div id="duplicate-form-container"></div>
        <div id="privacy-form-container"></div>
      </div>
    </div>
  </body>
</html>