~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/templates/distroseries-queue.pt

  • Committer: Danilo Segan
  • Date: 2011-07-18 09:23:10 UTC
  • mto: This revision was merged to the branch mainline in revision 13457.
  • Revision ID: danilo@canonical.com-20110718092310-vddlnojgmuxim9wx
Restore expander replacements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
<body>
11
11
 
 
12
<div metal:fill-slot="head_epilogue">
 
13
  <script type="text/javascript">
 
14
    LPS.use('node', 'lp.app.widgets.expander', function(Y) {
 
15
        Y.on('domready', function() {
 
16
            var all_expanders = Y.all('.expander-link');
 
17
            all_expanders.each(function(link) {
 
18
                var base_id = link.get('id').replace('-icon', '');
 
19
                var content = Y.one('tbody.' + base_id);
 
20
                var content_rows = content.all('tr td *');
 
21
                var expander = new Y.lp.app.widgets.expander.Expander(
 
22
                    link, content, { no_animation: true });
 
23
                expander.setUp();
 
24
            });
 
25
        });
 
26
    });
 
27
  </script>
 
28
</div>
 
29
 
12
30
<div metal:fill-slot="main"
13
31
     tal:define="setup view/setupQueueList;
14
32
                 message view/performQueueAction;
68
86
           <th> When </th>
69
87
         </tr>
70
88
       </thead>
71
 
       <tbody class="lesser">
72
 
         <tal:batch repeat="packageupload batch">
73
 
           <tal:block define="filelist_class string:queue-${packageupload/id}">
 
89
       <tal:batch repeat="packageupload batch">
 
90
         <tal:block define="filelist_class string:queue-${packageupload/id}">
 
91
           <tbody class="lesser">
74
92
             <tr class="queue-row">
75
93
                <tal:comment condition="nothing">
76
94
                  Every column is top-padded apart from the checkbox
78
96
                  other browsers look odd, now. :/
79
97
                </tal:comment>
80
98
                <td width="14" style="padding-top: 5px">
81
 
                  <a tal:attributes="href string:#;
82
 
                     onclick string:return toggleExpandableTableRows('${filelist_class}')">
83
 
                    <img tal:attributes="id string:${filelist_class}-arrow"
84
 
                         width="14" height="14"
85
 
                         src="/@@/treeCollapsed" alt="view files"/>
86
 
                  </a>
 
99
                  <span tal:attributes="id string:${filelist_class}-icon"
 
100
                        class="expander-link">&nbsp;</span>
87
101
                </td>
88
102
                <td class="icon left" tal:condition="view/availableActions">
89
103
                     <input type="checkbox" name="QUEUE_ID"
128
142
                  </span>
129
143
                </td>
130
144
             </tr>
 
145
           </tbody>
 
146
           <tbody tal:attributes="class string:${filelist_class} lesser">
131
147
             <metal:filelist use-macro="template/macros/package-filelist"/>
132
 
           </tal:block>
133
 
         </tal:batch>
 
148
           </tbody>
 
149
         </tal:block>
 
150
       </tal:batch>
 
151
       <tbody class="lesser">
134
152
         <tr tal:condition="view/availableActions">
135
153
           <td colspan="4" style="text-align: right;
136
154
                                  vertical-align: bottom;
203
221
  </tal:comment>
204
222
 
205
223
    <tal:copy condition="packageupload/pending_delayed_copy">
206
 
      <tr tal:attributes="class string:${filelist_class}"
207
 
          tal:define="archive
208
 
                      packageupload/sourcepackagerelease/upload_archive"
209
 
          style="display:none">
 
224
      <tr tal:define="archive
 
225
                      packageupload/sourcepackagerelease/upload_archive">
210
226
        <td />
211
227
        <td tal:condition="view/availableActions" />
212
228
        <td>Copied from
224
240
    </tal:copy>
225
241
 
226
242
    <tal:upload condition="not: packageupload/pending_delayed_copy">
227
 
      <tr tal:repeat="file packageupload/source_files"
228
 
          tal:attributes="class string:${filelist_class}"
229
 
          style="display:none">
 
243
      <tr tal:repeat="file packageupload/source_files">
230
244
        <td/>
231
245
        <td tal:condition="view/availableActions"/>
232
246
        <td
243
257
                component_name package/component/name/lower;
244
258
                section_name package/section/name/lower;
245
259
                version package/version">
246
 
        <tr tal:repeat="file python:packageupload.binary_packages[package]"
247
 
            tal:attributes="class string:${filelist_class}"
248
 
            style="display:none">
 
260
        <tr tal:repeat="file python:packageupload.binary_packages[package]">
249
261
          <td/>
250
262
          <td tal:condition="view/availableActions"/>
251
263
          <td tal:define="libraryfilealias file/libraryfile">
262
274
    </tal:package>
263
275
 
264
276
    <tal:custom define="customfiles packageupload/customfiles">
265
 
      <tr tal:repeat="custom python:list(customfiles)"
266
 
          tal:attributes="class string:${filelist_class}"
267
 
          style="display:none">
 
277
      <tr tal:repeat="custom python:list(customfiles)">
268
278
        <td/>
269
279
        <td tal:condition="view/availableActions"></td>
270
280
        <td tal:define="libraryfilealias custom/libraryfilealias">
276
286
 
277
287
    <tal:diffs condition="packageupload/sourcepackagerelease">
278
288
      <tr tal:define="diffs packageupload/sourcepackagerelease/package_diffs"
279
 
          tal:repeat="diff diffs"
280
 
          tal:attributes="class string:${filelist_class}"
281
 
          style="display:none">
 
289
          tal:repeat="diff diffs">
282
290
        <td/>
283
291
        <td tal:condition="view/availableActions"></td>
284
292
        <td>