~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/templates/person-macros.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:
120
120
  </div>
121
121
</metal:macro>
122
122
 
123
 
<metal:macro define-macro="spph-rows">
 
123
<metal:macro define-macro="sourcepackagerelease-rows">
124
124
 
125
125
  <tal:comment replace="nothing">
126
126
    This macro expects the following variables defined:
127
 
    :spphs: A list of SourcePackagePublishingHistory objects
 
127
    :sourcepackagereleases: A list of SourcePackageRelease objects
128
128
  </tal:comment>
129
129
 
130
 
  <tr tal:repeat="spph spphs">
131
 
  <tal:define define="spr spph/sourcepackagerelease;
132
 
                     distroseries spph/distroseries">
 
130
  <tr tal:repeat="sourcepackagerelease sourcepackagereleases">
 
131
  <tal:define define="spr sourcepackagerelease;
 
132
                     distroseries spr/upload_distroseries">
133
133
    <td>
134
134
      <a tal:attributes="href string:${distroseries/distribution/fmt:url}/+source/${spr/name}"
135
135
         class="distrosrcpackage"
149
149
      </a>
150
150
    </td>
151
151
    <td
152
 
      tal:attributes="title spph/datecreated/fmt:datetime"
153
 
      tal:content="spph/datecreated/fmt:approximatedate">
 
152
      tal:attributes="title spr/dateuploaded/fmt:datetime"
 
153
      tal:content="spr/dateuploaded/fmt:approximatedate">
154
154
      2005-10-24
155
155
    </td>
156
156
    <td>
157
 
      <tal:needs_building condition="spph/needs_building">
 
157
      <tal:needs_building condition="spr/needs_building">
158
158
          Not yet built
159
159
      </tal:needs_building>
160
 
      <tal:built condition="not: spph/needs_building">
161
 
          <tal:failed repeat="build spph/failed_builds">
 
160
      <tal:built condition="not: spr/needs_building">
 
161
          <tal:failed repeat="build spr/failed_builds">
162
162
             <a tal:attributes="href build/fmt:url"
163
163
                tal:content="build/distro_arch_series/architecturetag" />
164
164
          </tal:failed>
165
 
          <tal:not_failed condition="not: spph/failed_builds">
 
165
          <tal:not_failed condition="not: spr/failed_builds">
166
166
             None
167
167
          </tal:not_failed>
168
168
      </tal:built>
169
169
    </td>
170
170
    <td style="text-align: right">
171
171
      <a tal:attributes="href string:${spr/distrosourcepackage/fmt:url}/+bugs"
172
 
         tal:content="spph/open_bugs">
 
172
         tal:content="spr/open_bugs">
173
173
      </a>
174
174
    </td>
175
175
    <td style="text-align: right">
176
176
      <a tal:attributes="href string:${spr/distrosourcepackage/fmt:url}/+questions"
177
 
         tal:content="spph/open_questions">
 
177
         tal:content="spr/open_questions">
178
178
      </a>
179
179
    </td>
180
180
  </tal:define>