Merge lp:~bac/launchpad/bug-595907 into lp:launchpad

Proposed by Brad Crittenden
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merged at revision: 11062
Proposed branch: lp:~bac/launchpad/bug-595907
Merge into: lp:launchpad
Diff against target: 113 lines (+17/-11)
7 files modified
buildout-templates/bin/retest.in (+1/-1)
lib/canonical/launchpad/icing/style-3-0.css.in (+4/-0)
lib/lp/bugs/help/tag-help.html (+2/-2)
lib/lp/bugs/templates/bugtask-index.pt (+4/-2)
lib/lp/registry/stories/person/xx-person-home.txt (+2/-2)
lib/lp/registry/templates/person-portlet-contact-details.pt (+2/-2)
lib/lp/registry/templates/product-index.pt (+2/-2)
To merge this branch: bzr merge lp:~bac/launchpad/bug-595907
Reviewer Review Type Date Requested Status
Jelmer Vernooij (community) code Approve
Review via email: mp+28423@code.launchpad.net

Commit message

Use the 'maybe' sprite for pop-up help rather than referencing the img directly.

Description of the change

= Summary =

Recently I added pop-up help and copied existing template code to make
it work. Sadly the code I copied was not using the available sprite but
referencing the img directly.

== Proposed fix ==

Fix the new code and the old to use "sprite maybe". Add "maybe" to the
sprite CSS.

As a drive-by fix I've corrected the path generated for bin/retest to
make it work again.

== Pre-implementation notes ==

Chat with Curtis.

== Implementation details ==

As above.

== Tests ==

Run the registy and bugs tests to ensure nothing broke.

== Demo and Q/A ==

Look at https://launchpad.dev/firefox, https://launchpad.dev/~mark, and
https://launchpad.dev/bugs/15 to ensure the pop-up icons are displayed

= 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/registry/templates/product-index.pt
  lib/lp/bugs/help/tag-help.html
  lib/lp/registry/stories/person/xx-person-home.txt
  lib/lp/registry/templates/person-portlet-contact-details.pt
  lib/canonical/launchpad/icing/style-3-0.css.in
  buildout-templates/bin/retest.in
  lib/lp/bugs/templates/bugtask-index.pt

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'buildout-templates/bin/retest.in'
2--- buildout-templates/bin/retest.in 2010-04-20 19:10:35 +0000
3+++ buildout-templates/bin/retest.in 2010-06-24 20:27:26 +0000
4@@ -34,7 +34,7 @@
5 ${python-relative-path-setup}
6
7 # The test script for this branch.
8-TEST = ${buildout:directory/bin/test|path-repr}
9+TEST = ${buildout:directory/bin/test}
10
11 # Regular expression to match numbered stories.
12 STORY_RE = re.compile("(.*)/\d{2}-.*")
13
14=== modified file 'lib/canonical/launchpad/icing/style-3-0.css.in'
15--- lib/canonical/launchpad/icing/style-3-0.css.in 2010-06-21 04:08:54 +0000
16+++ lib/canonical/launchpad/icing/style-3-0.css.in 2010-06-24 20:27:26 +0000
17@@ -1989,6 +1989,10 @@
18 background-image: url(/@@/maybe.png); /* sprite-ref: icon-sprites */
19 background-repeat: no-repeat;
20 }
21+.maybe {
22+ background-image: url(/@@/maybe.png); /* sprite-ref: icon-sprites */
23+ background-repeat: no-repeat;
24+ }
25 .error-icon {
26 background-image: url(/@@/error.png); /* sprite-ref: icon-sprites */
27 background-repeat: no-repeat;
28
29=== modified file 'lib/lp/bugs/help/tag-help.html'
30--- lib/lp/bugs/help/tag-help.html 2010-04-28 13:00:59 +0000
31+++ lib/lp/bugs/help/tag-help.html 2010-06-24 20:27:26 +0000
32@@ -17,8 +17,8 @@
33 </p>
34
35 <p>
36- For example, if it's a user interface bug you might tag it with '<code>
37- ui</code>'.
38+ For example, if it's a user interface bug you might tag it with
39+ '<code>ui</code>'.
40 </p>
41
42 <p>
43
44=== modified file 'lib/lp/bugs/templates/bugtask-index.pt'
45--- lib/lp/bugs/templates/bugtask-index.pt 2010-06-15 15:52:12 +0000
46+++ lib/lp/bugs/templates/bugtask-index.pt 2010-06-24 20:27:26 +0000
47@@ -160,7 +160,8 @@
48 id="edit-tags-cancel" style="display: none"
49 type="button">Cancel</button>
50 </form>
51- <a href="/+help/tag-help.html" target="help" class="icon"><img src="/@@/maybe" alt="help" /></a>
52+ <a href="/+help/tag-help.html" target="help" class="sprite maybe">&nbsp;
53+ <span class="invisible-link">Tag help</span></a>
54 </div>
55 <div id="add-bug-tags"
56 tal:attributes="class python: ('tags-container ' +
57@@ -169,7 +170,8 @@
58 <a href="+edit" title="Add tags" id="add-tags-trigger" class="sprite add">
59 Add tags
60 </a>
61- <a href="/+help/tag-help.html" target="help" class="icon"><img src="/@@/maybe" alt="help" /></a>
62+ <a href="/+help/tag-help.html" target="help" class="sprite maybe">&nbsp;
63+ <span class="invisible-link">Tag help</span></a>
64 </div>
65
66 <div class="clearfix"></div>
67
68=== modified file 'lib/lp/registry/stories/person/xx-person-home.txt'
69--- lib/lp/registry/stories/person/xx-person-home.txt 2010-06-18 18:23:18 +0000
70+++ lib/lp/registry/stories/person/xx-person-home.txt 2010-06-24 20:27:26 +0000
71@@ -59,11 +59,11 @@
72 >>> print extract_text(
73 ... find_tag_by_id(user_browser.contents, 'openid-info'))
74 OpenID login:
75- http://launchpad.dev/~no-priv
76+ http://launchpad.dev/~no-priv...
77
78 The URL is followed by a helpful link.
79
80- >>> print user_browser.getLink('openid help').url
81+ >>> print user_browser.getLink('OpenID help').url
82 http://launchpad.dev/+help/openid.html
83
84 However, when the user visits someone else's page, they see no such URL.
85
86=== modified file 'lib/lp/registry/templates/person-portlet-contact-details.pt'
87--- lib/lp/registry/templates/person-portlet-contact-details.pt 2010-06-11 21:54:08 +0000
88+++ lib/lp/registry/templates/person-portlet-contact-details.pt 2010-06-24 20:27:26 +0000
89@@ -67,8 +67,8 @@
90 <dd>
91 <img src="/@@/private" alt="" />
92 <tal:openid-login content="view/openid_identity_url" />
93- <a target="help" href="/+help/openid.html" class="icon">
94- <img src="/@@/maybe" alt="openid help" /></a>
95+ <a target="help" href="/+help/openid.html" class="sprite maybe">&nbsp;
96+ <span class="invisible-link">OpenID help</span></a>
97 </dd>
98 </dl>
99
100
101=== modified file 'lib/lp/registry/templates/product-index.pt'
102--- lib/lp/registry/templates/product-index.pt 2010-06-11 21:53:32 +0000
103+++ lib/lp/registry/templates/product-index.pt 2010-06-24 20:27:26 +0000
104@@ -91,8 +91,8 @@
105 <a tal:replace="structure overview_menu/reassign/fmt:icon" />
106 </tal:driver_unset>
107
108- <a target="help" href="/+help/driver.html" class="icon">
109- <img src="/@@/maybe" alt="help" /></a>
110+ <a target="help" href="/+help/driver.html"
111+ class="sprite maybe">&nbsp;<span class="invisible-link">Driver help</span></a>
112 </dd>
113 </dl>
114