Merge lp:~edwin-grubbs/launchpad/bug-436229-distroseries-page-titles into lp:launchpad/db-devel
Proposed by
Edwin Grubbs
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Barry Warsaw | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~edwin-grubbs/launchpad/bug-436229-distroseries-page-titles | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
139 lines 7 files modified
lib/lp/registry/browser/distributionsourcepackage.py (+1/-1) lib/lp/registry/browser/distroseries.py (+2/-9) lib/lp/registry/browser/sourcepackage.py (+4/-13) lib/lp/registry/browser/tests/distroseries-views.txt (+2/-2) lib/lp/registry/model/sourcepackage.py (+4/-4) lib/lp/registry/templates/distributionsourcepackage-index.pt (+0/-4) lib/lp/registry/templates/sourcepackage-index.pt (+0/-2) |
||||
To merge this branch: | bzr merge lp:~edwin-grubbs/launchpad/bug-436229-distroseries-page-titles | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | ui | Approve | |
Barry Warsaw (community) | code ui* | Approve | |
Review via email: mp+12439@code.launchpad.net |
To post a comment you must log in.
Summary
-------
This branch removes redundancies from the $distro/+addseries and +edit-packaging page titles and labels.
$distroseries/
It also makes the $distrosourcepa ckage/+ index and $sourcepackage/ +index
pages use the label attribute.
DistributionSou rcePackageView. label was just returning the title attribute ew.label, and rcePackageView. title, since that was what the browser code displayname instead of the title, which made the
from the model, so I did the same for the SourcePackageVi
I updated the SourcePackage.title to format the string just like
DistributionSou
was doing effectively. The only small change I made to that was to use
the DistroSeries.
SourcePackage.title cleaner.
Tests
-----
./bin/test -vv -t whatever
Demo and Q/A
------------
* Open http:// launchpad. dev/...
* Check that the <title> and <h1> don't have redundancies. /launchpad. dev/ubuntu/ +addseries /launchpad. dev/ubuntu/ warty/+ source/ mozilla- firefox/ +edit-packaging /launchpad. dev/ubuntu/ warty/+ source/ mozilla- firefox/ /launchpad. dev/ubuntu/ +source/ mozilla- firefox/
* https:/
* https:/
* Check that the <h1> appears above the breadcrumbs instead of below it.
* https:/
* Removed fill-slot="heading" which was doing the exact same thing as using
the label would.
* https:/