~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/templates/bugtask-index.pt

  • Committer: Graham Binns
  • Date: 2011-09-07 11:26:19 UTC
  • mto: This revision was merged to the branch mainline in revision 13914.
  • Revision ID: graham@canonical.com-20110907112619-ksanxjjowbhnxjhj
The comments form will now be displayed when all comments have finished loading.

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
        <tal:comment-list-complete
298
298
            tal:condition="not:view/visible_comments_truncated_for_display">
299
299
          <tal:logged-in condition="view/user">
300
 
            <div tal:define="comment_form nocall:context/@@+addcomment-form;
301
 
                 dummy comment_form/initialize"
302
 
                 id="add-comment-form">
303
 
              <div
304
 
                  tal:condition="context/bug/duplicateof"
305
 
                  class="warning message"
306
 
                  id="warning-comment-on-duplicate">
307
 
                  Remember, this bug report is a duplicate of
308
 
      <a
309
 
        tal:define="duplicateof context/bug/duplicateof"
310
 
        tal:condition="duplicateof/required:launchpad.View"
311
 
        tal:attributes="href duplicateof/fmt:url; title
312
 
           duplicateof/title; style string:margin-right: 4px;
313
 
           id string:duplicate-of-warning-link;"
314
 
        tal:content="string:bug #${duplicateof/id}."
315
 
      >bug #42</a>
316
 
        <span
317
 
          tal:define="duplicateof context/bug/duplicateof"
318
 
          tal:condition="not:duplicateof/required:launchpad.View"
319
 
          tal:replace="string: a private bug." />
320
 
                  Comment here only if you think the duplicate status is wrong.
321
 
              </div>
322
 
              <h2>Add comment</h2>
323
 
              <form action="+addcomment"
324
 
                    method="post"
325
 
                    enctype="multipart/form-data"
326
 
                    accept-charset="UTF-8">
327
 
                <tal:comment-input
328
 
                  replace="structure comment_form/widgets/comment" />
329
 
                <div class="actions"
330
 
                  tal:content="structure
331
 
                  comment_form/actions/field.actions.save/render" />
332
 
              </form>
333
 
              <script type="text/javascript">
334
 
                LPS.use('lp.app.comment', function(Y) {
335
 
                    var comment = new Y.lp.app.comment.Comment();
336
 
                    comment.render();
337
 
                });
338
 
              </script>
339
 
            </div>
340
 
            <tal:attachment-link
341
 
                define="add_attachment_link context_menu/addcomment"
342
 
                replace="structure add_attachment_link/render" />
 
300
            <metal:comment-form
 
301
                metal:use-macro="context/@@bugcomment-macros/comment-form" />
343
302
          </tal:logged-in>
344
303
 
345
304
          <tal:not-logged-in condition="not: view/user">
351
310
        </tal:comment-list-complete>
352
311
        <tal:comment-list-truncated
353
312
            tal:condition="view/visible_comments_truncated_for_display">
354
 
          <div class="informational message">
 
313
          <div class="informational message comments-hidden-message" >
355
314
            Displaying first <span
356
315
            tal:replace="view/visible_initial_comments">23</span>
357
316
            and last <span
367
326
                view_all_href">add a comment</a>.
368
327
            </tal:what-next>
369
328
          </div>
 
329
          <tal:logged-in condition="view/user">
 
330
            <div id="add-comment-form-container" class="hidden">
 
331
              <metal:comment-form
 
332
                  metal:use-macro="context/@@bugcomment-macros/comment-form" />
 
333
            </div>
 
334
          </tal:logged-in>
370
335
        </tal:comment-list-truncated>
371
336
      </tal:comments>
372
337