Merge lp:~julian-edwards/launchpad/mechanical-changes-6 into lp:launchpad

Proposed by Julian Edwards
Status: Merged
Merged at revision: not available
Proposed branch: lp:~julian-edwards/launchpad/mechanical-changes-6
Merge into: lp:launchpad
Diff against target: None lines
To merge this branch: bzr merge lp:~julian-edwards/launchpad/mechanical-changes-6
Reviewer Review Type Date Requested Status
Michael Nelson (community) code/ui Approve
Review via email: mp+11064@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) wrote :

= Summary =
Mechanical 3.0 changes for DistroArchSeriesBinaryPackage[Release] pages

== Implementation details ==
I slipped in a quick bug fix while I was at it:
https://bugs.edge.launchpad.net/bugs/241341
to fix a page heading. This was just a case of changing the title property on
the context class.

The change to the DistroArchSeriesBinaryPackage is trivial and can be seen
here:
https://launchpad.dev/ubuntu/warty/i386/mozilla-firefox

The change to the DistroArchSeriesBinaryPackageRelease page was more involved.
It uses several page fragments in the package relationships section that are
in a different context/view. They are not used anywhere else so I added some
conditional "yui-u" div classes to those so that they don't appear when not
necessary.

The breadcrumbs on both pages are not working properly, I will fix those in a
separate branch.

== Tests ==
bin/test -vvt stories.soyuz -t distroarchseriesbinarypackage

== Demo and Q/A ==
See the URLs above.

= Launchpad lint =

Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.

Linting changed files:
  lib/lp/soyuz/doc/distroarchseriesbinarypackage.txt
  lib/lp/soyuz/templates/binarypackagerelease-portlet-predepends.pt
  lib/lp/soyuz/templates/binarypackagerelease-portlet-depends.pt
  lib/lp/soyuz/templates/binarypackagerelease-portlet-suggests.pt
  lib/lp/soyuz/templates/distroarchseriesbinarypackagerelease-portlet-
details.pt
  lib/lp/soyuz/templates/binarypackagerelease-portlet-conflicts.pt
  lib/lp/soyuz/templates/distroarchseriesbinarypackage-index.pt
  lib/lp/soyuz/templates/binarypackagerelease-portlet-enhances.pt
  lib/lp/soyuz/templates/binarypackagerelease-portlet-replaces.pt
  lib/lp/soyuz/templates/distroarchseriesbinarypackagerelease-index.pt
  lib/lp/soyuz/templates/binarypackagerelease-portlet-recommends.pt
  lib/lp/soyuz/model/distroarchseriesbinarypackage.py
  lib/lp/soyuz/templates/binarypackagerelease-portlet-provides.pt
  lib/lp/soyuz/templates/binarypackagerelease-portlet-breaks.pt

Revision history for this message
Michael Nelson (michael.nelson) wrote :
Download full text (7.5 KiB)

> = Summary =
> Mechanical 3.0 changes for DistroArchSeriesBinaryPackage[Release] pages

These pages look *so* much better! It's great seeing LP transformed :)

>
> == Implementation details ==
> I slipped in a quick bug fix while I was at it:
> https://bugs.edge.launchpad.net/bugs/241341
> to fix a page heading. This was just a case of changing the title property on
> the context class.

Great! As mentioned in irc, you've added an extra 'for' into the title unintentionally, and it would be good to use smartquotes here.

>
> The change to the DistroArchSeriesBinaryPackage is trivial and can be seen
> here:
> https://launchpad.dev/ubuntu/warty/i386/mozilla-firefox
>
> The change to the DistroArchSeriesBinaryPackageRelease page was more involved.
> It uses several page fragments in the package relationships section that are
> in a different context/view. They are not used anywhere else so I added some
> conditional "yui-u" div classes to those so that they don't appear when not
> necessary.
>
> The breadcrumbs on both pages are not working properly, I will fix those in a
> separate branch.
>
> == Tests ==
> bin/test -vvt stories.soyuz -t distroarchseriesbinarypackage

Looks like the tests for the title need updating (or you may have done it since I merged).

The only other thing is that we need to ensure we markup the package relationships correctly... currently there are dt's that are not enclosed by dl's (like having an <li> without it being inside a <ul> or an <ol>. That in itself is as easy as doing the following for each relationship portlet:

http://pastebin.ubuntu.com/264324/

It does leave one remaining problem - the <dt> is then followed by a <ul> rather than a bunch of <dd>'s, but we can't fix that yet as another template (sourcepackage-index.pt) uses the same +render-list traversal (which in-turn uses the packagerelationship-list.pt). So I think we should wait until sourcepackage-index.pt is updated to 3-0 before updating packagerelationship-list.pt to output dd's). I'll leave it up to you whether it's worth an XXX.

Looking forward to seeing it land!

IRC log:
<bigjools> great
<noodles775> bigjools: you mention in your MP that the breadcrumbs aren't working properly - in what way?
<bigjools> noodles775: they are now, I landed a change last night :)
<noodles775> bigjools: heh, I couldn't find a problem :)
<bigjools> they stopped at 9.04
<noodles775> bigjools: any reason you didn't use smartquote in the title?
<bigjools> or whatever version
<bigjools> meh, details :)
<noodles775> (like in model/distributionsourcepackage's title?)
<noodles775> bigjools: also, see https://launchpad.dev/ubuntu/warty/i386/mozilla-firefox
<noodles775> What do you think we should do in that case? (The empty Package relationships section)
<bigjools> noodles775: it will never be empty in real life
<noodles775> Great.
<bigjools> our sample data is bong
* jtv (n=jtv@125.25.88.144.adsl.dynamic.totbb.net) has joined #launchpad-reviews
<noodles775> bigjools: also with the dasbp title, was it an explicit decision to do '"mozilla-firefox" binary package in Ubuntu Karmic for i386' rather than without the 'for' as suggested by mpt: '"mozilla-firefox" binary pa...

Read more...

review: Approve (code/ui)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/soyuz/doc/distroarchseriesbinarypackage.txt'
--- lib/lp/soyuz/doc/distroarchseriesbinarypackage.txt 2009-04-30 12:16:12 +0000
+++ lib/lp/soyuz/doc/distroarchseriesbinarypackage.txt 2009-09-02 11:28:03 +0000
@@ -1,5 +1,6 @@
1Distro Arch Release Binary Package1=================================
2^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2Distro Arch Series Binary Package
3=================================
34
4 >>> from lp.soyuz.model.binarypackagename import (5 >>> from lp.soyuz.model.binarypackagename import (
5 ... BinaryPackageName)6 ... BinaryPackageName)
@@ -15,6 +16,11 @@
15 >>> firefox_hoary_i386 = DistroArchSeriesBinaryPackage(hoary_i386,16 >>> firefox_hoary_i386 = DistroArchSeriesBinaryPackage(hoary_i386,
16 ... firefox_name)17 ... firefox_name)
1718
19`DistroArchSeriesBinaryPackage`s have a title property:
20
21 >>> print pmount_hoary_i386.title
22 "pmount" binary package in The Hoary Hedgehog Release for i386 (x86)
23
1824
19First, we create a new version of pmount, and a version of25First, we create a new version of pmount, and a version of
20mozilla-firefox that coincides with pmount's. We're hitch-hiking on two26mozilla-firefox that coincides with pmount's. We're hitch-hiking on two
@@ -36,7 +42,7 @@
36 ... PackagePublishingPocket, IDistributionSet)42 ... PackagePublishingPocket, IDistributionSet)
37 >>> priority = PackagePublishingPriority.STANDARD43 >>> priority = PackagePublishingPriority.STANDARD
3844
39XXX: noodles 2008-11-05 bug=294585: The dependency on a database id 45XXX: noodles 2008-11-05 bug=294585: The dependency on a database id
40needs to be removed.46needs to be removed.
41 >>> bpr = Build.get(8).createBinaryPackageRelease(47 >>> bpr = Build.get(8).createBinaryPackageRelease(
42 ... binarypackagename=firefox_name.id,48 ... binarypackagename=firefox_name.id,
@@ -77,7 +83,7 @@
77 ... dateremoved=None,83 ... dateremoved=None,
78 ... archive=hoary_i386.main_archive)84 ... archive=hoary_i386.main_archive)
7985
80XXX: noodles 2008-11-06 bug=294585: The dependency on a database id 86XXX: noodles 2008-11-06 bug=294585: The dependency on a database id
81needs to be removed.87needs to be removed.
82 >>> bpr = Build.get(9).createBinaryPackageRelease(88 >>> bpr = Build.get(9).createBinaryPackageRelease(
83 ... binarypackagename=pmount_name.id,89 ... binarypackagename=pmount_name.id,
8490
=== modified file 'lib/lp/soyuz/model/distroarchseriesbinarypackage.py'
--- lib/lp/soyuz/model/distroarchseriesbinarypackage.py 2009-07-19 04:41:14 +0000
+++ lib/lp/soyuz/model/distroarchseriesbinarypackage.py 2009-09-02 11:28:03 +0000
@@ -71,7 +71,7 @@
71 @property71 @property
72 def title(self):72 def title(self):
73 """See IDistroArchSeriesBinaryPackage."""73 """See IDistroArchSeriesBinaryPackage."""
74 return 'Binary Package "%s" in %s' % (74 return '"%s" binary package in %s' % (
75 self.binarypackagename.name, self.distroarchseries.title)75 self.binarypackagename.name, self.distroarchseries.title)
7676
77 @cachedproperty77 @cachedproperty
@@ -238,7 +238,7 @@
238 current_release = self.currentrelease238 current_release = self.currentrelease
239 if current_release is None:239 if current_release is None:
240 return None240 return None
241 241
242 src_pkg_release = current_release.distributionsourcepackagerelease242 src_pkg_release = current_release.distributionsourcepackagerelease
243 if src_pkg_release is None:243 if src_pkg_release is None:
244 return None244 return None
245245
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-breaks.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-breaks.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-breaks.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-breaks">5 tal:define="relationships view/breaks"
66 tal:condition="relationships/has_items"
7 <h2>Breaks</h2>7 class="first yui-u" id="portlet-breaks">
88
9 <div class="portletBody portletContent"9 <div id="breaks">
10 id="breaks"10 <dt>Breaks:</dt>
11 tal:define="relationships view/breaks">11 <tal:block replace="structure relationships/@@+render-list" />
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list" />
15
16 </div>12 </div>
1713
18</div>14</div>
1915
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-conflicts.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-conflicts.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-conflicts.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-conflicts">5 tal:define="relationships view/conflicts"
66 tal:condition="relationships/has_items"
7 <h2>Conflicts</h2>7 class="first yui-u" id="portlet-conflicts">
88
9 <div class="portletBody portletContent"9 <div id="conflicts">
10 id="conflicts"10 <dt>Conflicts:</dt>
11 tal:define="relationships view/conflicts">11 <tal:block replace="structure relationships/@@+render-list"/>
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list"/>
15
16 </div>12 </div>
1713
18</div>14</div>
1915
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-depends.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-depends.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-depends.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-depends">5 tal:define="relationships view/depends"
66 tal:condition="relationships/has_items"
7 <h2>Depends on</h2>7 class="first yui-u" id="portlet-depends">
88
9 <div class="portletBody portletContent"9 <div id="depends">
10 id="depends"10 <dt>Depends on:</dt>
11 tal:define="relationships view/depends">11 <tal:block replace="structure relationships/@@+render-list"/>
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list"/>
15
16 </div>12 </div>
1713
18</div>14</div>
1915
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-enhances.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-enhances.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-enhances.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-enhances">5 tal:define="relationships view/enhances"
66 tal:condition="relationships/has_items"
7 <h2>Enhances</h2>7 class="first yui-u" id="portlet-enhances">
88
9 <div class="portletBody portletContent"9 <div id="enhances">
10 id="enhances"10 <dt>Enhances:</dt>
11 tal:define="relationships view/enhances">11 <tal:block replace="structure relationships/@@+render-list"/>
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list"/>
15
16 </div>12 </div>
1713
18</div>14</div>
1915
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-predepends.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-predepends.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-predepends.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-predepends">5 tal:define="relationships view/pre_depends"
66 tal:condition="relationships/has_items"
7 <h2>Pre-Depends on</h2>7 class="first yui-u" id="portlet-predepends">
88
9 <div class="portletBody portletContent"9 <div id="predepends">
10 id="predepends"10 <dt>Pre-Depends on:</dt>
11 tal:define="relationships view/pre_depends">11 <tal:block replace="structure relationships/@@+render-list"/>
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list"/>
15
16 </div>12 </div>
1713
18</div>14</div>
1915
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-provides.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-provides.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-provides.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-provides">5 tal:define="relationships view/provides"
66 tal:condition="relationships/has_items"
7 <h2>Provides</h2>7 class="first yui-u" id="portlet-provides">
88
9 <div class="portletBody portletContent"9 <div id="provides">
10 id="provides"10 <dt>Provides:</dt>
11 tal:define="relationships view/provides">11 <tal:block replace="structure relationships/@@+render-list"/>
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list"/>
15
16 </div>12 </div>
1713
18</div>14</div>
1915
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-recommends.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-recommends.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-recommends.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-recommends">5 tal:define="relationships view/recommends"
66 tal:condition="relationships/has_items"
7 <h2>Recommends</h2>7 class="first yui-u" id="portlet-recommends">
88
9 <div class="portletBody portletContent"9 <div id="recommends">
10 id="recommends"10 <dt>Recommends:</dt>
11 tal:define="relationships view/recommends">11 <tal:block replace="structure relationships/@@+render-list"/>
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list"/>
15
16 </div>12 </div>
1713
18</div>14</div>
1915
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-replaces.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-replaces.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-replaces.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-replaces">5 tal:define="relationships view/replaces"
66 tal:condition="relationships/has_items"
7 <h2>Replaces</h2>7 class="first yui-u" id="portlet-replaces">
88
9 <div class="portletBody portletContent"9 <div id="replaces">
10 id="replaces"10 <dt>Replaces:</dt>
11 tal:define="relationships view/replaces">11 <tal:block replace="structure relationships/@@+render-list"/>
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list"/>
15
16 </div>12 </div>
1713
1814
1915
=== modified file 'lib/lp/soyuz/templates/binarypackagerelease-portlet-suggests.pt'
--- lib/lp/soyuz/templates/binarypackagerelease-portlet-suggests.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/binarypackagerelease-portlet-suggests.pt 2009-09-02 14:54:06 +0000
@@ -2,17 +2,13 @@
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-suggests">5 tal:define="relationships view/suggests"
66 tal:condition="relationships/has_items"
7 <h2>Suggests</h2>7 class="first yui-u" id="portlet-suggests">
88
9 <div class="portletBody portletContent"9 <div id="suggests">
10 id="suggests"10 <dt>Suggests:</dt>
11 tal:define="relationships view/suggests">11 <tal:block replace="structure relationships/@@+render-list"/>
12
13 <tal:block condition="relationships/has_items"
14 replace="structure relationships/@@+render-list"/>
15
16 </div>12 </div>
1713
18</div>14</div>
1915
=== modified file 'lib/lp/soyuz/templates/distroarchseriesbinarypackage-index.pt'
--- lib/lp/soyuz/templates/distroarchseriesbinarypackage-index.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/distroarchseriesbinarypackage-index.pt 2009-09-01 19:49:09 +0000
@@ -3,37 +3,20 @@
3 xmlns:tal="http://xml.zope.org/namespaces/tal"3 xmlns:tal="http://xml.zope.org/namespaces/tal"
4 xmlns:metal="http://xml.zope.org/namespaces/metal"4 xmlns:metal="http://xml.zope.org/namespaces/metal"
5 xmlns:i18n="http://xml.zope.org/namespaces/i18n"5 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
6 xml:lang="en"6 metal:use-macro="view/macro:page/main_only"
7 lang="en"
8 dir="ltr"
9 metal:use-macro="context/@@main_template/master"
10 i18n:domain="launchpad"7 i18n:domain="launchpad"
11>8>
12 <body>9 <body>
1310
14 <metal:leftportlets fill-slot="portlets_one">
15 <div tal:replace="structure context/@@+portlet-details" />
16 <div tal:replace="structure context/distroarchseries/@@+portlet-details" />
17 </metal:leftportlets>
18
19 <metal:rightportlets fill-slot="portlets_two">
20 <div tal:replace="structure context/@@+portlet-releases" />
21 </metal:rightportlets>
22
23<div metal:fill-slot="main">11<div metal:fill-slot="main">
2412
25 <div>13 <div class="top-portlet">
26 <a
27 tal:attributes="href context/distroarchseries/fmt:url"
28 tal:content="context/distroarchseries/displayname"
29 />
30 </div>
31 <h1 tal:content="context/title">pmount in Ubuntu Hoary i386</h1>
32
33 <tal:description replace="structure context/description/fmt:text-to-html">14 <tal:description replace="structure context/description/fmt:text-to-html">
34 Package description15 Package description
35 </tal:description>16 </tal:description>
17 </div>
3618
19 <div class="portlet">
37 <h2>Publishing history</h2>20 <h2>Publishing history</h2>
3821
39 <table id="publishing-summary" class="listing">22 <table id="publishing-summary" class="listing">
@@ -55,7 +38,9 @@
55 </tal:block>38 </tal:block>
56 </tbody>39 </tbody>
57 </table>40 </table>
41 </div>
5842
43 <div class="top-portlet">
59 <tal:sourcepkg tal:define="spackage context/distro_source_package"44 <tal:sourcepkg tal:define="spackage context/distro_source_package"
60 tal:condition="spackage">45 tal:condition="spackage">
61 <h2>Source package</h2>46 <h2>Source package</h2>
@@ -63,7 +48,7 @@
63 <div id="source">48 <div id="source">
64 <ul>49 <ul>
65 <li class="source package">50 <li class="source package">
66 <a 51 <a
67 tal:content="spackage/title"52 tal:content="spackage/title"
68 tal:attributes="href spackage/fmt:url"53 tal:attributes="href spackage/fmt:url"
69 id="source_package">SOURCEPACKAGE</a>54 id="source_package">SOURCEPACKAGE</a>
@@ -71,6 +56,7 @@
71 </ul>56 </ul>
72 </div>57 </div>
73 </tal:sourcepkg>58 </tal:sourcepkg>
59 </div>
74</div>60</div>
75</body>61</body>
76</html>62</html>
7763
=== modified file 'lib/lp/soyuz/templates/distroarchseriesbinarypackagerelease-index.pt'
--- lib/lp/soyuz/templates/distroarchseriesbinarypackagerelease-index.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/distroarchseriesbinarypackagerelease-index.pt 2009-09-02 14:54:06 +0000
@@ -3,103 +3,84 @@
3 xmlns:tal="http://xml.zope.org/namespaces/tal"3 xmlns:tal="http://xml.zope.org/namespaces/tal"
4 xmlns:metal="http://xml.zope.org/namespaces/metal"4 xmlns:metal="http://xml.zope.org/namespaces/metal"
5 xmlns:i18n="http://xml.zope.org/namespaces/i18n"5 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
6 xml:lang="en"6 metal:use-macro="view/macro:page/main_only"
7 lang="en"
8 dir="ltr"
9 metal:use-macro="context/@@main_template/master"
10 i18n:domain="launchpad"7 i18n:domain="launchpad"
11>8>
12 <body>9 <body>
1310
14<metal:leftportlets fill-slot="portlets_one">
15 <div tal:replace="structure context/@@+portlet-details" />
16 <div tal:replace="structure context/distroarchseries/@@+portlet-details" />
17</metal:leftportlets>
18
19
20<div metal:fill-slot="main">11<div metal:fill-slot="main">
2112
22 <div>
23 <a
24 tal:attributes="href context/distroarchseries/fmt:url"
25 tal:content="context/distroarchseries/displayname"
26 />:
27 <a tal:attributes="href context/distroarchseriesbinarypackage/fmt:url">
28 &ldquo;<tal:packagename
29 replace="context/distroarchseriesbinarypackage/name"
30 />&rdquo; package
31 </a>
32 </div>
33 <h1 tal:content="context/title">Name of package</h1>
3413
14 <div class="top-portlet">
35 <tal:description replace="structure context/description/fmt:text-to-html">15 <tal:description replace="structure context/description/fmt:text-to-html">
36 Package Description16 Package Description
37 </tal:description>17 </tal:description>
3818 </div>
39 <h2>Source package</h2>19
4020 <div class="yui-g">
41 <div id="source">21
42 <ul>22 <div class="first yui-u">
43 <li class="source package">23 <div tal:replace="structure context/@@+portlet-details" />
44 <a tal:define="spackage context/distributionsourcepackagerelease"24 </div>
45 tal:content="spackage/title"25
46 tal:attributes="href spackage/fmt:url">SOURCEPACKAGE</a>26 <div class="yui-u">
47 </li>27 <div class="portlet">
48 </ul>28 <h2>Downloadable files</h2>
49 </div>29 <div id="files">
5030 <div id="build" tal:condition="context/build">
51 <h2>Downloadable files</h2>31 <a tal:define="pbuild context/build"
5232 tal:content="pbuild/title"
53 <div id="files">33 tal:attributes="href pbuild/fmt:url">BUILD</a> produced
54 <div id="build" tal:condition="context/build">34 <span tal:condition="context/files">
55 <a tal:define="pbuild context/build"35 these files:
56 tal:content="pbuild/title"36 </span>
57 tal:attributes="href pbuild/fmt:url">BUILD</a> produced37 <span tal:condition="not: context/files">
58 <span tal:condition="context/files">38 no files for this binary package.
59 these files:39 </span>
60 </span>40 </div>
41
42 <div id="downloadable-files">
43 <ul class="download" tal:condition="context/files">
44 <li tal:repeat="file context/files">
45 <a class="sprite"
46 tal:content="file/libraryfile/filename"
47 tal:attributes="href file/libraryfile/http_url"></a>
48 (<span tal:replace="file/libraryfile/content/filesize/fmt:bytes" />)
49 </li>
50 </ul>
51 </div>
52 </div>
53 <!-- No build and no downloadable files -->
54 <div tal:condition="not: context/build">
61 <span tal:condition="not: context/files">55 <span tal:condition="not: context/files">
62 no files for this binary package.56 There are no downloadable files for this binary package.
63 </span>57 </span>
64 </div>58 </div>
65 59 </div><!--portlet-->
66 <div id="downloadable-files">60 </div><!--yui-u-->
67 <ul class="download" tal:condition="context/files">61
68 <li tal:repeat="file context/files">62 </div><!--yui-g-->
69 <a tal:content="file/libraryfile/filename"63
70 tal:attributes="href file/libraryfile/http_url"></a>64
71 (<span tal:replace="file/libraryfile/content/filesize/fmt:bytes" />)65 <style>#relationships div {padding-top:0.5em;}</style>
72 </li>66 <div class="yui-g" tal:define="bpr context/binarypackagerelease">
73 </ul>67 <div class="portlet" id="relationships">
74 </div>68
75 </div>69 <h2>Package relationships</h2>
76 <!-- No build and no downloadable files -->70
77 <div tal:condition="not: context/build">71 <div tal:replace="structure bpr/@@+portlet-depends" />
78 <span tal:condition="not: context/files">72 <div tal:replace="structure bpr/@@+portlet-conflicts" />
79 There are no downloadable files for this binary package.73 <div tal:replace="structure bpr/@@+portlet-provides" />
80 </span>74 <div tal:replace="structure bpr/@@+portlet-replaces" />
81 </div>75 <div tal:replace="structure bpr/@@+portlet-suggests" />
8276 <div tal:replace="structure bpr/@@+portlet-recommends" />
8377 <div tal:replace="structure bpr/@@+portlet-predepends" />
84 <h2>Package relationships</h2>78 <div tal:replace="structure bpr/@@+portlet-enhances" />
8579 <div tal:replace="structure bpr/@@+portlet-breaks" />
86 <table width="100%" tal:define="bpr context/binarypackagerelease">80
87 <tr>81 </div><!--portlet-->
88 <td><div tal:replace="structure bpr/@@+portlet-depends" /></td>82 </div><!--yui-g-->
89 <td><div tal:replace="structure bpr/@@+portlet-conflicts" /></td>83
90 <td><div tal:replace="structure bpr/@@+portlet-provides" /></td>
91 </tr>
92 <tr>
93 <td><div tal:replace="structure bpr/@@+portlet-replaces" /></td>
94 <td><div tal:replace="structure bpr/@@+portlet-suggests" /></td>
95 <td><div tal:replace="structure bpr/@@+portlet-recommends" /></td>
96 </tr>
97 <tr>
98 <td><div tal:replace="structure bpr/@@+portlet-predepends" /></td>
99 <td><div tal:replace="structure bpr/@@+portlet-enhances" /></td>
100 <td><div tal:replace="structure bpr/@@+portlet-breaks" /></td>
101 </tr>
102 </table>
103</div>84</div>
104</body>85</body>
105</html>86</html>
10687
=== modified file 'lib/lp/soyuz/templates/distroarchseriesbinarypackagerelease-portlet-details.pt'
--- lib/lp/soyuz/templates/distroarchseriesbinarypackagerelease-portlet-details.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/soyuz/templates/distroarchseriesbinarypackagerelease-portlet-details.pt 2009-09-02 11:56:16 +0000
@@ -6,24 +6,36 @@
66
7 <h2>Details</h2>7 <h2>Details</h2>
88
9 <div class="portletBody portletContent">9 <div class="two-column-list">
1010
11 <b>Package version:</b>11 <dl>
12 <span tal:replace="context/version" /><br />12 <dt>Package version:</dt>
1313 <dd tal:content="context/version" />
14 <b>Source:</b>14 </dl>
15 <a tal:content="context/distributionsourcepackagerelease/version"15
16 <dl>
17 <dt>Source:</dt>
18 <dd id="source">
19 <a tal:content="context/distributionsourcepackagerelease/title"
16 tal:attributes="href context/distributionsourcepackagerelease/fmt:url"20 tal:attributes="href context/distributionsourcepackagerelease/fmt:url"
17 >apache2 2.1-3</a><br />21 >apache2 2.1-3 (source) in Ubuntu</a><br />
1822 </dd>
19 <b>Status:</b>23 </dl>
20 <span tal:replace="context/status/title" /><br />24
2125 <dl>
22 <b>Component:</b>26 <dt>Status:</dt>
23 <span tal:replace="context/component/name" /><br />27 <dd tal:content="context/status/title" />
2428 </dl>
25 <b>Priority:</b>29
26 <span tal:replace="context/priority/title" /><br />30 <dl>
31 <dt>Component:</dt>
32 <dd tal:content="context/component/name" />
33 </dl>
34
35 <dl>
36 <dt>Priority:</dt>
37 <dd tal:content="context/priority/title" />
38 </dl>
2739
28 </div>40 </div>
2941