Merge lp:~cprov/launchpad/bug-416789-distribution-ppas-icons into lp:launchpad
- bug-416789-distribution-ppas-icons
- Merge into devel
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~cprov/launchpad/bug-416789-distribution-ppas-icons | ||||
Merge into: | lp:launchpad | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp:~cprov/launchpad/bug-416789-distribution-ppas-icons | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | code | Approve | |
Review via email: mp+11038@code.launchpad.net |
Commit message
Description of the change
Celso Providelo (cprov) wrote : | # |
Gavin Panella (allenap) wrote : | # |
Line 107 has a small typo, s/arq/arch, but otherwise it looks good :)
BTW, I just tried using two-column-list in a portlet and it did not work properly; it rendered only one row on the same line, then the others were staggered. Have you seen that?
Celso Providelo (cprov) wrote : | # |
On Wed, Sep 2, 2009 at 7:42 AM, Gavin
Panella<email address hidden> wrote:
> Review: Approve code
> Line 107 has a small typo, s/arq/arch, but otherwise it looks good :)
This typo comes from the CSS sprites declaration, I wasn't aware that
my change was the only callsite.
Fixed both.
> BTW, I just tried using two-column-list in a portlet and it did not work properly; it rendered only one row on the same line, then the others were staggered. Have you seen that?
two-column-list only applies to multiples <dl>s, not multiple <dt>s
within the same <dl>:
{{{
<div class="
<dl><
<dl><
<dl><
</div>
}}}
--
Celso Providelo <email address hidden>
IRC: cprov, Jabber: <email address hidden>, Skype: cprovidelo
1024D/681B6469 C858 2652 1A6E F6A6 037B B3F7 9FF2 583E 681B 6469
Preview Diff
1 | === modified file 'lib/canonical/launchpad/pagetitles.py' | |||
2 | --- lib/canonical/launchpad/pagetitles.py 2009-09-02 03:54:47 +0000 | |||
3 | +++ lib/canonical/launchpad/pagetitles.py 2009-09-02 05:37:54 +0000 | |||
4 | @@ -405,8 +405,6 @@ | |||
5 | 405 | 405 | ||
6 | 406 | distribution_builds = ContextTitle('%s builds') | 406 | distribution_builds = ContextTitle('%s builds') |
7 | 407 | 407 | ||
8 | 408 | distribution_ppa_list = ContextTitle('%s Personal Package Archives') | ||
9 | 409 | |||
10 | 410 | distributionsourcepackage_bugs = ContextTitle('Bugs in %s') | 408 | distributionsourcepackage_bugs = ContextTitle('Bugs in %s') |
11 | 411 | 409 | ||
12 | 412 | distributionsourcepackage_index = ContextTitle('%s') | 410 | distributionsourcepackage_index = ContextTitle('%s') |
13 | 413 | 411 | ||
14 | === modified file 'lib/lp/registry/browser/distribution.py' | |||
15 | --- lib/lp/registry/browser/distribution.py 2009-09-01 10:37:35 +0000 | |||
16 | +++ lib/lp/registry/browser/distribution.py 2009-09-02 05:37:54 +0000 | |||
17 | @@ -653,6 +653,7 @@ | |||
18 | 653 | self.context, purposes=[ArchivePurpose.COPY], user=self.user) | 653 | self.context, purposes=[ArchivePurpose.COPY], user=self.user) |
19 | 654 | return results.order_by('date_created DESC') | 654 | return results.order_by('date_created DESC') |
20 | 655 | 655 | ||
21 | 656 | |||
22 | 656 | class DistributionPPASearchView(LaunchpadView): | 657 | class DistributionPPASearchView(LaunchpadView): |
23 | 657 | """Search PPAs belonging to the Distribution in question.""" | 658 | """Search PPAs belonging to the Distribution in question.""" |
24 | 658 | 659 | ||
25 | @@ -661,6 +662,10 @@ | |||
26 | 661 | self.show_inactive = self.request.get('show_inactive') | 662 | self.show_inactive = self.request.get('show_inactive') |
27 | 662 | 663 | ||
28 | 663 | @property | 664 | @property |
29 | 665 | def page_title(self): | ||
30 | 666 | return '%s Personal Package Archives' % self.context.title | ||
31 | 667 | |||
32 | 668 | @property | ||
33 | 664 | def search_results(self): | 669 | def search_results(self): |
34 | 665 | """Process search form request.""" | 670 | """Process search form request.""" |
35 | 666 | if self.name_filter is None: | 671 | if self.name_filter is None: |
36 | 667 | 672 | ||
37 | === modified file 'lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt' | |||
38 | --- lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt 2009-08-23 05:28:49 +0000 | |||
39 | +++ lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt 2009-09-02 05:37:54 +0000 | |||
40 | @@ -37,11 +37,14 @@ | |||
41 | 37 | >>> print extract_text( | 37 | >>> print extract_text( |
42 | 38 | ... find_tag_by_id(anon_browser.contents, 'ppa_statistics')) | 38 | ... find_tag_by_id(anon_browser.contents, 'ppa_statistics')) |
43 | 39 | Statistics | 39 | Statistics |
49 | 40 | 3 registered PPAs | 40 | Registered PPAs: |
50 | 41 | 2 active PPAs | 41 | 3 |
51 | 42 | 4 published sources | 42 | Active PPAs: |
52 | 43 | 4 published binaries | 43 | 2 |
53 | 44 | 44 | Published sources: | |
54 | 45 | 4 | ||
55 | 46 | Published binaries: | ||
56 | 47 | 4 | ||
57 | 45 | 48 | ||
58 | 46 | Up to 5 latest source publications are also presented in the 'Latest | 49 | Up to 5 latest source publications are also presented in the 'Latest |
59 | 47 | sources' section. | 50 | sources' section. |
60 | @@ -919,15 +922,15 @@ | |||
61 | 919 | ... find_tag_by_id(anon_browser.contents, 'ppa_most_active')) | 922 | ... find_tag_by_id(anon_browser.contents, 'ppa_most_active')) |
62 | 920 | Most active | 923 | Most active |
63 | 921 | PPAs with the highest number of uploads in the last 7 days. | 924 | PPAs with the highest number of uploads in the last 7 days. |
68 | 922 | Celso Providelo 4 uploads | 925 | PPA for Celso Providelo 4 uploads |
69 | 923 | Mark Shuttleworth 2 uploads | 926 | PPA for Mark Shuttleworth 2 uploads |
70 | 924 | Ubuntu Team 2 uploads | 927 | PPA for Ubuntu team 2 uploads |
71 | 925 | No Privileges Person 1 uploads | 928 | PPA for No Privileges Person 1 uploads |
72 | 926 | 929 | ||
73 | 927 | The user can also in any PPA title listed in that section to visit the | 930 | The user can also in any PPA title listed in that section to visit the |
74 | 928 | PPA itself. | 931 | PPA itself. |
75 | 929 | 932 | ||
77 | 930 | >>> anon_browser.getLink('Celso Providelo').click() | 933 | >>> anon_browser.getLink('PPA for Celso Providelo').click() |
78 | 931 | >>> print anon_browser.title | 934 | >>> print anon_browser.title |
79 | 932 | PPA for Celso Providelo | 935 | PPA for Celso Providelo |
80 | 933 | 936 | ||
81 | 934 | 937 | ||
82 | === modified file 'lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt' | |||
83 | --- lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt 2009-07-17 17:59:07 +0000 | |||
84 | +++ lib/lp/soyuz/templates/distribution-portlet-ppa-architectures.pt 2009-09-02 05:37:54 +0000 | |||
85 | @@ -7,19 +7,21 @@ | |||
86 | 7 | tal:condition="serieses"> | 7 | tal:condition="serieses"> |
87 | 8 | 8 | ||
88 | 9 | <h2>PPA supported series</h2> | 9 | <h2>PPA supported series</h2> |
91 | 10 | <div class="portletBody portletContent"> | 10 | <div> |
92 | 11 | <ul style="padding: 0 0 0 2em;" class="distroseries"> | 11 | <ul> |
93 | 12 | <tal:per_series repeat="series serieses"> | 12 | <tal:per_series repeat="series serieses"> |
95 | 13 | <li tal:condition="series/active"> | 13 | <li class="sprite distribution" |
96 | 14 | tal:condition="series/active"> | ||
97 | 14 | <a tal:attributes="href series/fmt:url"> | 15 | <a tal:attributes="href series/fmt:url"> |
98 | 15 | <tal:version replace="series/version" /> | 16 | <tal:version replace="series/version" /> |
99 | 16 | "<tal:codename replace="series/displayname" />" | 17 | "<tal:codename replace="series/displayname" />" |
100 | 17 | </a> | 18 | </a> |
101 | 18 | - <tal:status replace="series/status/name/fmt:lower" /> | 19 | - <tal:status replace="series/status/name/fmt:lower" /> |
102 | 19 | 20 | ||
104 | 20 | <ul class="architecture" tal:define="archs series/virtualized_architectures" | 21 | <ul tal:define="archs series/virtualized_architectures" |
105 | 21 | tal:condition="archs"> | 22 | tal:condition="archs"> |
107 | 22 | <li tal:repeat="arch archs"> | 23 | <li class="sprite arquitecture" |
108 | 24 | tal:repeat="arch archs"> | ||
109 | 23 | <a tal:attributes="href arch/fmt:url"> | 25 | <a tal:attributes="href arch/fmt:url"> |
110 | 24 | <tal:title replace="arch/architecturetag" /> | 26 | <tal:title replace="arch/architecturetag" /> |
111 | 25 | <tal:official condition="arch/official"> | 27 | <tal:official condition="arch/official"> |
112 | 26 | 28 | ||
113 | === modified file 'lib/lp/soyuz/templates/distribution-ppa-list.pt' | |||
114 | --- lib/lp/soyuz/templates/distribution-ppa-list.pt 2009-08-14 18:51:49 +0000 | |||
115 | +++ lib/lp/soyuz/templates/distribution-ppa-list.pt 2009-09-02 05:37:54 +0000 | |||
116 | @@ -16,8 +16,7 @@ | |||
117 | 16 | 16 | ||
118 | 17 | <div id="ppa_search" class="top-portlet"> | 17 | <div id="ppa_search" class="top-portlet"> |
119 | 18 | 18 | ||
122 | 19 | <h1 tal:content="CONTEXTS/fmt:pagetitle">Ubuntu Linux Personal | 19 | <h2>Personal Package Archives</h2> |
121 | 20 | Package Archives</h1> | ||
123 | 21 | 20 | ||
124 | 22 | <p>Personal Package Archives (PPA) allow you to upload | 21 | <p>Personal Package Archives (PPA) allow you to upload |
125 | 23 | Ubuntu source packages to be built and published as an | 22 | Ubuntu source packages to be built and published as an |
126 | @@ -30,7 +29,7 @@ | |||
127 | 30 | tal:condition="registered_ppas"> | 29 | tal:condition="registered_ppas"> |
128 | 31 | <p>Search user-contributed software packages published in any | 30 | <p>Search user-contributed software packages published in any |
129 | 32 | <tal:distribution replace="context/title" | 31 | <tal:distribution replace="context/title" |
131 | 33 | >Ubuntu</tal:distribution>PPA.</p> | 32 | >Ubuntu</tal:distribution> PPA.</p> |
132 | 34 | <table> | 33 | <table> |
133 | 35 | <tbody> | 34 | <tbody> |
134 | 36 | <tr> | 35 | <tr> |
135 | @@ -60,38 +59,40 @@ | |||
136 | 60 | 59 | ||
137 | 61 | <div id="ppa_statistics" class="portlet"> | 60 | <div id="ppa_statistics" class="portlet"> |
138 | 62 | <h2>Statistics</h2> | 61 | <h2>Statistics</h2> |
159 | 63 | <tal:has_ppas condition="registered_ppas"> | 62 | <div class="two-column-list" tal:condition="registered_ppas"> |
160 | 64 | <ul> | 63 | <dl> |
161 | 65 | <li><tal:ppa_registered | 64 | <dt> Registered PPAs:</dt> |
162 | 66 | replace="registered_ppas" | 65 | <dd tal:content="registered_ppas">10</dd> |
163 | 67 | >10</tal:ppa_registered> registered PPAs</li> | 66 | </dl> |
164 | 68 | <li><tal:ppa_active | 67 | <dl> |
165 | 69 | replace="view/number_of_active_ppas" | 68 | <dt>Active PPAs:</dt> |
166 | 70 | >4</tal:ppa_active> active PPAs</li> | 69 | <dd tal:content="view/number_of_active_ppas">4</dd> |
167 | 71 | <li><tal:ppa_sources | 70 | </dl> |
168 | 72 | replace="view/number_of_ppa_sources" | 71 | <dl> |
169 | 73 | >20</tal:ppa_sources> published sources</li> | 72 | <dt>Published sources:</dt> |
170 | 74 | <li><tal:ppa_binaries | 73 | <dd tal:content="view/number_of_ppa_sources">20</dd> |
171 | 75 | replace="view/number_of_ppa_binaries" | 74 | </dl> |
172 | 76 | >20</tal:ppa_binaries> published binaries</li> | 75 | <dl> |
173 | 77 | </ul> | 76 | <dt>Published binaries:</dt> |
174 | 78 | </tal:has_ppas> | 77 | <dd tal:content="view/number_of_ppa_binaries">20</dd> |
175 | 79 | <tal:has_no_ppas condition="not: registered_ppas"> | 78 | </dl> |
176 | 80 | <p><tal:distribution replace="context/displayname" /> | 79 | </div> |
177 | 81 | does not have any registered PPA.</p> | 80 | <p tal:condition="not: registered_ppas"> |
178 | 82 | </tal:has_no_ppas> | 81 | <span tal:replace="context/displayname">Ubuntu Linux</span> |
179 | 82 | does not have any registered PPA. | ||
180 | 83 | </p> | ||
181 | 83 | </div> <!-- ppa_statistics --> | 84 | </div> <!-- ppa_statistics --> |
182 | 84 | 85 | ||
183 | 85 | <div id="ppa_latest_uploads" class="portlet" | 86 | <div id="ppa_latest_uploads" class="portlet" |
184 | 86 | tal:condition="registered_ppas"> | 87 | tal:condition="registered_ppas"> |
185 | 87 | <h2>Latest uploads</h2> | 88 | <h2>Latest uploads</h2> |
186 | 88 | <ul class="source package"> | 89 | <ul class="source package"> |
188 | 89 | <li tal:repeat="pub view/latest_ppa_source_publications"> | 90 | <li class="sprite package-source" |
189 | 91 | tal:repeat="pub view/latest_ppa_source_publications"> | ||
190 | 90 | <tal:source_title replace="pub/displayname"> | 92 | <tal:source_title replace="pub/displayname"> |
191 | 91 | mozilla-firefox - 1.0 in warty | 93 | mozilla-firefox - 1.0 in warty |
192 | 92 | </tal:source_title> in | 94 | </tal:source_title> in |
195 | 93 | <a tal:attributes="href pub/archive/fmt:url" | 95 | <a tal:replace="structure pub/archive/fmt:link" |
194 | 94 | tal:content="pub/archive/displayname" | ||
196 | 95 | >PPA for Celso Providelo </a> | 96 | >PPA for Celso Providelo </a> |
197 | 96 | <tal:datepublished replace="pub/age/fmt:approximateduration"> | 97 | <tal:datepublished replace="pub/age/fmt:approximateduration"> |
198 | 97 | 3 minutes</tal:datepublished> ago | 98 | 3 minutes</tal:datepublished> ago |
199 | @@ -107,10 +108,8 @@ | |||
200 | 107 | <table> | 108 | <table> |
201 | 108 | <tr tal:repeat="most_active view/most_active_ppas"> | 109 | <tr tal:repeat="most_active view/most_active_ppas"> |
202 | 109 | <td> | 110 | <td> |
207 | 110 | <a tal:attributes="href most_active/archive/fmt:url" | 111 | <a tal:replace="structure most_active/archive/fmt:link" |
208 | 111 | tal:content="most_active/archive/owner/fmt:displayname"> | 112 | >PPA for Celso Providelo</a> |
205 | 112 | Celso Providelo | ||
206 | 113 | </a> | ||
209 | 114 | </td> | 113 | </td> |
210 | 115 | <td align="right"> | 114 | <td align="right"> |
211 | 116 | <tal:sources replace="most_active/uploads" /> uploads | 115 | <tal:sources replace="most_active/uploads" /> uploads |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
= Summary =
This branch fixes https:/ /bugs.edge. launchpad. net/bugs/ 416789 by adjusting the style bits (specially icons) lost during the 3.0 redesign.
It also benefits of IPPA/fmt:link and removes the need of pagetitles.py for that page.
== Tests ==
./bin/test -vv -t xx-ubuntu-ppas.txt
== Demo and Q/A ==
https:/ /launchpad. dev/ubuntu/ +ppas
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: soyuz/templates /distribution- portlet- ppa-architectur es.pt soyuz/stories/ ppa/xx- ubuntu- ppas.txt /launchpad/ pagetitles. py soyuz/templates /distribution- ppa-list. pt registry/ browser/ distribution. py
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkq eB5EACgkQ7KBXuX yZSjB28wCgrcNAA F9ofH/XEZPcC8Cb z5XN C+aKVyVSZEgaq/ GEK
KwoAoKePThNUrCZ
=IjaM
-----END PGP SIGNATURE-----