~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/templates/bugtask-tasks-and-nominations-table-row.pt

Merge from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
          form_row_id string:task${context/id}">
10
10
  <tr tal:define="editstatus_url string:${context/fmt:url}/+editstatus"
11
11
      tal:attributes="class view/getTaskRowCSSClass; id row_id">
12
 
    <td>
 
12
    <td class="icon left right">
13
13
      <metal:expander
14
14
          metal:define-macro="expander"
15
15
          tal:define="expander_link_text expander_link_text|nothing">
16
16
        <a tal:condition="expandable"
17
 
           tal:attributes="href tasklink" class="bugtask-expander">
 
17
           tal:attributes="
 
18
            href tasklink;
 
19
            onclick string:return toggleFormVisibility('${form_row_id}')"
 
20
            class="sprite bug-status-expand">
 
21
          &nbsp;
18
22
          <tal:link_text tal:replace="expander_link_text" />
19
 
          &#8203;
20
23
        </a>
21
24
        <tal:no_expander tal:condition="not: expandable"
22
25
                         tal:replace="expander_link_text" />
172
175
          class="bugtasks-table-row-init-script"
173
176
          tal:condition="not:view/many_bugtasks"
174
177
          tal:content="string:
175
 
    LPS.use('event', 'lp.bugs.bugtask_index', 'lp.app.widgets.expander',
176
 
            function(Y) {
177
 
        Y.on('domready', function() {
178
 
          Y.lp.bugs.bugtask_index.setup_bugtask_row(${view/js_config});
179
 
 
180
 
          // Set-up the expander on the bug task summary row.
181
 
          var icon_node = Y.one('tr#${row_id} a.bugtask-expander');
182
 
          var row_node = Y.one('tr#${form_row_id}');
183
 
          if (Y.Lang.isValue(row_node)) {
184
 
            // When no row is present, this is bug task on a project with
185
 
            // multiple per-series tasks, so we do not need to set
186
 
            // the expander for the descriptive parent project task.
187
 
            var content_node = row_node.one('td form');
188
 
            var expander = new Y.lp.app.widgets.expander.Expander(
189
 
              icon_node, row_node, { animate_node: content_node });
190
 
            expander.setUp();
191
 
          }
192
 
        });
 
178
    LPS.use('event', 'lp.bugs.bugtask_index', function(Y) {
 
179
        Y.on('load',
 
180
             function(e) {
 
181
                 Y.lp.bugs.bugtask_index.setup_bugtask_row(${view/js_config});
 
182
             },
 
183
             window);
193
184
    });
194
185
  "/>
195
 
 
196
186
  <tal:form condition="view/displayEditForm">
197
187
    <tr
198
188
      tal:attributes="id form_row_id"
199
189
      tal:condition="expandable"
200
 
      class="bugtask-collapsible-content unseen"
 
190
      style="display: none"
201
191
    >
202
192
     <td colspan="7" tal:content="structure view/edit_view" />
203
193
    </tr>