~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/templates/person-ppa-packages.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-21 03:09:33 UTC
  • mfrom: (7675.1045.811 db-devel)
  • Revision ID: launchpad@pqm.canonical.com-20110921030933-mfkdkkkb99sskvrt
Merging db-stable at revno 10994

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
       replace="structure view/batchnav/@@+navigation-links-upper" />
26
26
 
27
27
  <tal:ppa-packages
28
 
    define="spphs view/batch">
 
28
    define="sourcepackagereleases view/batch">
29
29
 
30
 
  <table class="listing" tal:condition="spphs">
 
30
  <table class="listing" condition="sourcepackagereleases">
31
31
    <thead>
32
32
      <tr>
33
33
        <th>Name</th>
38
38
      </tr>
39
39
    </thead>
40
40
    <tbody>
41
 
      <div metal:use-macro="template/macros/spph-ppa-rows" />
 
41
      <div metal:use-macro="template/macros/sourcepackagerelease-ppa-rows" />
42
42
    </tbody>
43
43
  </table>
44
44
 
45
45
  <tal:navigation_bottom
46
46
       replace="structure view/batchnav/@@+navigation-links-lower" />
47
47
 
48
 
  <tal:no_packages condition="not: spphs">
 
48
  <tal:no_packages condition="not: sourcepackagereleases">
49
49
    <tal:name replace="context/fmt:displayname"/> has no related PPA packages.
50
50
  </tal:no_packages>
51
51
 
55
55
</div>
56
56
 
57
57
<metal:macros fill-slot="bogus">
58
 
<metal:macro define-macro="spph-ppa-rows">
 
58
<metal:macro define-macro="sourcepackagerelease-ppa-rows">
59
59
  <tal:comment replace="nothing">
60
60
    This macro expects the following variables defined:
61
 
    :spphs: A list of SourcePackagePublishingHistory objects
 
61
    :sourcepackagereleases: A list of SourcePackageRelease objects
62
62
  </tal:comment>
63
 
  <tr tal:repeat="spph spphs"
 
63
  <tr tal:repeat="sourcepackagerelease sourcepackagereleases"
64
64
      class="ppa_row">
65
 
  <tal:block define="spr spph/sourcepackagerelease;
66
 
                     distroseries spph/distroseries;
67
 
                     ppa spph/archive">
 
65
  <tal:block define="spr sourcepackagerelease;
 
66
                     distroseries spr/upload_distroseries;
 
67
                     ppa spr/upload_archive">
68
68
    <td tal:content="spr/sourcepackagename/name">
69
69
      iceweasel
70
70
    </td>
77
77
      1.0
78
78
    </td>
79
79
    <td
80
 
      tal:attributes="title spph/datecreated/fmt:datetime"
81
 
      tal:content="spph/datecreated/fmt:approximatedate">
 
80
      tal:attributes="title spr/dateuploaded/fmt:datetime"
 
81
      tal:content="spr/dateuploaded/fmt:approximatedate">
82
82
      2005-10-24
83
83
    </td>
84
84
    <td>
85
 
      <tal:block condition="spph/needs_building">
 
85
      <tal:block condition="spr/needs_building">
86
86
          Not yet built
87
87
      </tal:block>
88
 
      <tal:block condition="not: spph/needs_building">
89
 
          <tal:block repeat="build spph/failed_builds">
 
88
      <tal:block condition="not: spr/needs_building">
 
89
          <tal:block repeat="build spr/failed_builds">
90
90
             <a tal:attributes="href build/fmt:url"
91
91
                tal:content="build/distro_arch_series/architecturetag" />
92
92
          </tal:block>
93
 
          <tal:block condition="not: spph/failed_builds">
 
93
          <tal:block condition="not: spr/failed_builds">
94
94
             None
95
95
          </tal:block>
96
96
      </tal:block>