~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  metal:use-macro="view/macro:page/main_side"
  i18n:domain="launchpad"
>

<body>

<metal:block fill-slot="head_epilogue">
  <tal:uses_launchpad_bugtracker
     condition="context/distribution/bug_tracking_usage/enumvalue:LAUNCHPAD">
    <script type="text/javascript">
      LPS.use('lp.registry.structural_subscription', function(Y) {
          var module = Y.lp.registry.structural_subscription;
          Y.on('domready', function() {
            module.setup({content_box: "#structural-subscription-content-box"});
          });
      });
    </script>
  </tal:uses_launchpad_bugtracker>
</metal:block>

<tal:side metal:fill-slot="side">
    <tal:menu replace="structure view/@@+global-actions" />

    <tal:involved replace="structure context/@@+get-involved" />

    <tal:subscribers
      replace="structure context/@@+portlet-structural-subscribers"/>
</tal:side>

<tal:main metal:fill-slot="main">
  <div class="yui-u">
    <div id="structural-subscription-content-box"></div>
  </div>
  <div class="top-portlet" id="bugs-and-questions-summary"
       tal:define="newbugs context/new_bugtasks/count;
                   open_questions view/open_questions/count">
    <div id="summary"
      tal:content="structure context/summary/fmt:text-to-html" />

    <p tal:condition="view/bugs_answers_usage/uses_either">
      This package has
      <a tal:attributes="href view/menu:overview/new_bugs/url"
        tal:condition="view/bugs_answers_usage/uses_bugs"
        ><tal:newbugs content="newbugs"/> new
        bug<tal:plural content="string:s" condition="python: newbugs!=1"/>
      </a>
      <tal:both condition="view/bugs_answers_usage/uses_both">and</tal:both>
      <a tal:attributes="href view/menu:overview/open_questions/url"
        tal:condition="view/bugs_answers_usage/uses_answers"
        ><tal:openq content="open_questions"/> open
        question<tal:plural content="string:s"
          condition="python: open_questions!=1"/>.
      </a>
    </p>
  </div>

  <div class="yui-g">

    <div class="yui-u first" tal:define="current context/currentrelease">
      <div class="portlet" tal:condition="current" id="current">
        <h2>Package information</h2>
        <div class="two-column-list">
          <dl>
            <dt>Maintainer:</dt>
            <dd>
               <a tal:replace="structure current/maintainer/fmt:link">Foo Bar</a>
            </dd>
          </dl>
          <dl>
            <dt>Urgency:<sup>*</sup></dt>
            <dd tal:content="current/urgency/title"/>
          </dl>
          <dl style="clear:both">
            <dt>Component:<sup>*</sup></dt>
            <dd tal:content="current/component/name"/>
          </dl>
          <dl>
            <dt>Architectures:<sup>*</sup></dt>
            <dd tal:content="current/architecturehintlist"/>
          </dl>
          <dl style="clear:both">
            <dt>Latest upload:</dt>
            <dd><a tal:content="current/version"
                   tal:attributes="href current/fmt:url">3.2.1-3</a>
            </dd>
          </dl>
        </div>
        <p style="font-size: 80%;">
          <sup>*</sup>actual publishing details may vary in this distribution, these are just the package defaults.
        </p>
      </div><!--portlet-->
      <div class="portlet" tal:condition="not: current" id="current">
        There is no current release for this source package in
        <span tal:replace="context/distribution/displayname">ubuntu</span>.
      </div>
    </div><!--yui-u-->

    <div class="yui-u">
      <div class="portlet" id="upstream">
        <div tal:condition="not: view/active_series">
          <h2>Upstream</h2>
          This package is no longer tracking upstream.
        </div>
        <tal:published_series
          condition="view/active_series"
          replace="structure view/latest_sourcepackage/@@+portlet-associations"
          />
      </div><!--portlet -->
    </div><!--yui-u -->

  </div><!--yui-g -->


  <div class="yui-u"
       tal:define="archive context/latest_overall_publication/archive|nothing">

    <table class="listing" id="packages_list">
      <tal:rows repeat="row view/version_table">

      <tal:title_row condition="row/title_row">
      <tr class="section-heading shaded" style="vertical-align: middle">
        <td colspan="3">
          <img tal:replace="structure context/distribution/image:icon"/>
          <a tal:attributes="href row/series_package/fmt:url"
             tal:content="row/distroseries/title"/>
          (<span tal:replace="row/distroseries/status/title/lower"/>)
          <div style="float:right; white-space: nowrap">
            <a tal:condition="row/show_set_upstream_link"
               tal:replace="structure row/series_package/menu:overview/set_upstream/fmt:link"/>
            <tal:has_packaging condition="row/packaging">
              <img tal:replace="structure row/packaging/productseries/image:icon"/>
              <a tal:replace="structure row/packaging/productseries/fmt:link"/>
              <a tal:replace="structure row/series_package/menu:overview/edit_packaging/fmt:icon"/>
              <a tal:replace="structure row/series_package/menu:overview/remove_packaging/fmt:icon" />
            </tal:has_packaging>
          </div><!--float right-->
        </td>
      </tr>
      </tal:title_row>

      <tal:package_row condition="row/data_row">
      <tal:define define="pubid row/publication/id">

      <tr class="archive_package_row">
        <td style="white-space: nowrap">
          <a class="expander"
             tal:attributes="id string:pub${pubid}-expander;
                             href string:${archive/fmt:url}/+sourcepub/${pubid}/+listing-archive-extra">
            &nbsp;
          </a>
          <a tal:attributes="href row/version">
            <img src="/@@/package-source" />
            <tal:version content="row/version"/>
          </a>
        </td>
        <td>
          <tal:pockets content="row/pockets/lower"/>
          (<tal:component content="row/component"/>)
        </td>
        <td>
          <tal:last_published condition="row/published_since">
            <span tal:replace="row/published_since/fmt:approximateduration"/>
            ago
          </tal:last_published>
          <tal:not_published
               condition="not: row/published_since"
               content="string:(not published)"/>
        </td>
      </tr>
      <tr tal:attributes="id string:pub${pubid}">
        <td colspan="3">
          <div class="package-details"
               tal:attributes="id string:pub${pubid}-container"></div>
        </td>
      </tr>

      </tal:define>
      </tal:package_row>

      <tal:blank_row condition="row/blank_row">
        <tr><td colspan="3" style="padding-bottom: 1em; border-top: 0" /></tr>
      </tal:blank_row>

      </tal:rows>
    </table>
    <script
       tal:content="string:LP.cache['archive_context_url'] = '${archive/fmt:url}';"></script>
    <metal:js use-macro="archive/@@+macros/expandable-table-js"/>

  </div>

  <div class="yui-u">
  <div class="portlet"
       tal:define="ppa_versions view/related_ppa_versions"
       tal:condition="ppa_versions" id="related-ppa-versions">
    <div id="slide-trigger">
      <div class="widget-hd">
        Other versions of '<span tal:replace="context/name" />' in untrusted
        archives.
      </div>
    </div>
    <div class="widget-bd">
      <p>The following <strong>unsupported</strong> and
         <strong>untrusted</strong> Personal Archives (PPAs) provide
         packages of
         '<span tal:replace="context/name" />':</p>
      <dl id="ppa_packaging">
        <tal:definition tal:repeat="ppa_version ppa_versions">
          <dt>
            <a tal:attributes="href ppa_version/archive/fmt:url">
              <img tal:replace="structure ppa_version/archive/image:icon" />
              <span tal:replace="ppa_version/archive/displayname">
                Super trusted PPA
              </span>
            </a> owned by
            <a tal:replace="structure ppa_version/archive/owner/fmt:link">
              Joe Dodgy
            </a>
          </dt>
          <dd>
            Versions:
            <span tal:replace="ppa_version/versions">
              Hoary (1.0.1), Feisty (2.0.1)
            </span>
          </dd>
        </tal:definition>
      </dl>

      <p>You can also search for
         <a tal:attributes="href view/further_ppa_versions_url">
           other untrusted versions of
           '<span tal:replace="context/name" />'</a>.
      </p>
    </div>
<script type="text/javascript">
LPS.use('node', 'event', 'lp.app.widgets.expander', function(Y) {

    // XXX Michael Nelson 20090702 bug=340497 This slider
    // needs an integration test.

    var related_ppas = Y.one('#related-ppa-versions');
    var widget_header = related_ppas.one('.widget-hd');
    var widget_body = related_ppas.one('.widget-bd');
    var expander = new Y.lp.app.widgets.expander.Expander(
        widget_header, widget_body);
    expander.setUp(true);
});
</script>

  </div>
  </div>

</tal:main>

</body>
</html>