~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Merge db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
                Y.lp.code.branchmergeproposal.diff.connect_diff_links();
21
21
            }, window);
22
22
            Y.on('domready', function() {
23
 
                var bug = { self_link: LP.cache.context.bug_link,
24
 
                            web_link: LP.cache.context.web_link };
 
23
                Y.lp.bugs.bugtask_index.setup_bugtask_table();
25
24
                LP.cache.comment_context = LP.cache.bug;
26
25
                Y.lp.comments.hide.setup_hide_controls();
27
26
                var sl = new Y.lp.bugs.subscribers.createBugSubscribersLoader({
28
27
                    container_box: '#other-bug-subscribers',
29
 
                    bug: bug,
30
28
                    subscribers_details_view:
31
29
                        '/+bug-portlet-subscribers-details',
32
30
                    subscribe_someone_else_link: '.menu-link-addsubscriber'
34
32
            });
35
33
         });
36
34
      </script>
37
 
      <tal:if
38
 
        condition="request/features/bugs.batched_comment_loading.enabled">
39
 
      <script type="text/javascript">
40
 
          var batched_comment_loading_enabled = true;
41
 
      </script>
42
 
      </tal:if>
43
 
      <tal:else
44
 
        condition="not: request/features/bugs.batched_comment_loading.enabled">
45
 
      <script type="text/javascript">
46
 
          var batched_comment_loading_enabled = false;
47
 
      </script>
48
 
      </tal:else>
49
35
      <style type="text/css">
50
36
        /* Align the 'add comment' link to the right of the comment box. */
51
37
        #add-comment-form textarea { width: 100%; }
138
124
        <tal:heat replace="structure view/bug_heat_html" />
139
125
      </div>
140
126
 
141
 
      <div tal:replace="structure context/bug/@@+bugtasks-and-nominations-table" />
142
 
 
 
127
      <div tal:replace="structure context/bug/@@+bugtasks-and-nominations-portal" />
143
128
      <div id="maincontentsub">
144
129
        <div><!-- id="nonportlets"> -->
145
130
        <div class="top-portlet">
316
301
                view_all_href">add a comment</a>.
317
302
            </tal:what-next>
318
303
          </div>
319
 
          <tal:if
320
 
            condition="request/features/bugs.batched_comment_loading.enabled">
321
 
              <tal:logged-in condition="view/user">
322
 
                <div id="add-comment-form-container" class="hidden">
323
 
                  <metal:comment-form
324
 
                      metal:use-macro="context/@@bugcomment-macros/comment-form" />
325
 
                </div>
326
 
              </tal:logged-in>
327
 
          </tal:if>
 
304
            <tal:logged-in condition="view/user">
 
305
              <div id="add-comment-form-container" class="hidden">
 
306
                <metal:comment-form
 
307
                    metal:use-macro="context/@@bugcomment-macros/comment-form" />
 
308
              </div>
 
309
            </tal:logged-in>
328
310
        </tal:comment-list-truncated>
329
311
      </tal:comments>
330
312