~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/templates/distroseries-localdifferences.pt

Merge db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    <div class="top-portlet" metal:fill-slot="main"
24
24
      tal:define="differences view/cached_differences;
25
25
                  series_name context/displayname;
26
 
                  parent_name context/previous_series/displayname;
27
26
                  can_perform_sync view/canPerformSync;">
28
27
      <p><tal:replace replace="structure view/explanation/escapedtext" /></p>
29
28
 
43
42
          <thead>
44
43
            <tr>
45
44
              <th>Source</th>
 
45
              <th tal:condition="python: not(view.has_unique_parent) and view.show_parent_version">
 
46
                Parent
 
47
              </th>
46
48
              <th tal:condition="view/show_parent_version">
47
 
                <tal:replace replace="parent_name" /> version</th>
 
49
                <tal:one_parent condition="view/has_unique_parent">
 
50
                  <a tal:attributes="href view/unique_parent/fmt:url"
 
51
                     tal:content="view/unique_parent/displayname">Warty</a> version
 
52
                </tal:one_parent>
 
53
                <tal:multiple_parents condition="not: view/has_unique_parent">
 
54
                  Parent version
 
55
                </tal:multiple_parents>
 
56
              </th>
48
57
              <th tal:condition="view/show_derived_version">
49
 
                <tal:replace replace="series_name" /> version</th>
 
58
                <a tal:attributes="href context/fmt:url"
 
59
                   tal:content="series_name">Deriwarty</a> version
 
60
              </th>
50
61
              <th tal:condition="view/show_parent_packagesets">
51
62
                Parent package-sets
52
63
              </th>
61
72
            <tal:difference repeat="difference differences/batch">
62
73
            <tr tal:define="parent_source_pub difference/parent_source_pub;
63
74
                            source_pub difference/source_pub;
 
75
                            diff_id difference/id;
64
76
                            src_name difference/source_package_name/name;"
65
77
                tal:attributes="class src_name">
66
78
 
67
79
              <td>
68
 
                <input tal:condition="can_perform_sync"
69
 
                  name="field.selected_differences" type="checkbox"
70
 
                  tal:attributes="
71
 
                    value src_name;
72
 
                    id string:field.selected_differences.${src_name}"/>
 
80
                <tal:checkbox
 
81
                    condition="can_perform_sync"
 
82
                    define="can_request python:view.canRequestSync(difference)">
 
83
                  <input tal:condition="can_request"
 
84
                    name="field.selected_differences" type="checkbox"
 
85
                    tal:attributes="
 
86
                      value diff_id;
 
87
                      id string:field.selected_differences.${diff_id}"/>
 
88
                  <input
 
89
                    tal:condition="not: can_request"
 
90
                    type="checkbox" disabled="disabled" />
 
91
                </tal:checkbox>
73
92
 
74
 
                <a tal:attributes="href difference/fmt:url" class="toggle-extra"
 
93
                <a tal:attributes="href difference/fmt:url"
 
94
                   class="js-action toggle-extra"
75
95
                   tal:content="src_name">Foo</a>
76
 
              </td>
77
96
 
 
97
                <tal:activity
 
98
                    define="activity python:view.describeJobs(difference)"
 
99
                    condition="activity">
 
100
                  &nbsp;&nbsp;
 
101
                  <span class="lowlight" tal:content="structure activity"></span>
 
102
                </tal:activity>
 
103
              </td>
 
104
              <td tal:condition="python: not(view.has_unique_parent) and view.show_parent_version">
 
105
                <a tal:attributes="href difference/parent_series/fmt:url"
 
106
                   tal:content="difference/parent_series/displayname"
 
107
                   class="parent-name">Warty</a>
 
108
              </td>
78
109
              <td tal:condition="view/show_parent_version">
79
110
                <a tal:condition="difference/parent_source_package_release"
80
111
                   tal:attributes="href difference/parent_source_package_release/fmt:url"
99
130
                </span>
100
131
              </td>
101
132
 
102
 
              <tal:comment replace="nothing">
103
 
                XXX: GavinPanella 2011-04-14 bug=760733: In
104
 
                TestDistroSeriesLocalDifferences.test_queries, this
105
 
                cell needs 1 QUERY per row: PackageSet
106
 
              </tal:comment>
107
133
              <td tal:condition="view/show_parent_packagesets"
108
134
                  class="parent-packagesets">
109
135
                <tal:replace replace="difference/@@/parent_packagesets_names"/>
141
167
                </tal:derived>
142
168
              </td>
143
169
 
144
 
              <tal:comment replace="nothing">
145
 
                XXX: GavinPanella 2011-04-14 bug=760733: In
146
 
                TestDistroSeriesLocalDifferences.test_queries, this
147
 
                cell needs 1 QUERY per row: MessageChunk
148
 
              </tal:comment>
149
170
              <td>
150
171
                <tal:comment tal:define="comment difference/latest_comment"
151
172
                             tal:condition="comment">
162
183
            </tal:difference>
163
184
          </tbody>
164
185
        </table>
165
 
        <tal:selectable_differences_end
 
186
        <tal:navigation_bottom
 
187
          replace="structure differences/@@+navigation-links-lower" />
 
188
         <tal:selectable_differences_end
166
189
               define="widget nocall:view/widgets/selected_differences;
167
190
                       field_name widget/context/__name__;
168
191
                       error python:view.getFieldError(field_name);">