Merge lp:~jtv/launchpad/bug-520659 into lp:launchpad

Proposed by Jeroen T. Vermeulen on 2010-02-11
Status: Merged
Approved by: Jeroen T. Vermeulen on 2010-02-11
Approved revision: not available
Merged at revision: not available
Proposed branch: lp:~jtv/launchpad/bug-520659
Merge into: lp:launchpad
Diff against target: 21 lines (+7/-3)
1 file modified
lib/lp/translations/templates/translation-import-queue-macros.pt (+7/-3)
To merge this branch: bzr merge lp:~jtv/launchpad/bug-520659
Reviewer Review Type Date Requested Status
Curtis Hovey (community) Approve on 2010-02-11
Jeroen T. Vermeulen (community) code Approve on 2010-02-11
Review via email: mp+19140@code.launchpad.net

Commit Message

Fix import-queue edit icons for webkit.

To post a comment you must log in.
Jeroen T. Vermeulen (jtv) wrote :

= Bug 520659 =

Curtis Hovey noted that webkit-based browser do not show the "edit" icons for translation import queue entries.

He also found the solution: there's a <span class="hidden-link"> inside the link, and an obscure snag in our CSS makes this work only when the span tag abuts the anchor tag, without any intervening whitespace.

Before: http://people.canonical.com/~jtv/bug-520659/before.png
After: http://people.canonical.com/~jtv/bug-520659/after.png

(The icons still won't show up in Konqueror because of a separate problem with the edit sprites. That's being resolved as well.)

No tests. No lint. Q/A by comparing the page between Chromium and Firefox, on edge and production.

Jeroen

Jeroen T. Vermeulen (jtv) wrote :

sinzui just gave his approval on IRC.

review: Approve (code)
Curtis Hovey (sinzui) wrote :

I did give approval.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/translations/templates/translation-import-queue-macros.pt'
2--- lib/lp/translations/templates/translation-import-queue-macros.pt 2009-12-03 18:33:22 +0000
3+++ lib/lp/translations/templates/translation-import-queue-macros.pt 2010-02-11 21:04:20 +0000
4@@ -160,10 +160,14 @@
5 No import target selected yet.
6 </span>
7 <tal:block condition="entry/required:launchpad.Admin">
8+ <tal:comment condition="nothing">
9+ Our CSS requires the span to abut the "a" tag, with no
10+ intervening whitespace. If the two are separated, the
11+ edit links stop showing up in Webkit.
12+ </tal:comment>
13 <a class="sprite edit"
14- tal:attributes="href entry/fmt:url">
15- <span class="invisible-link">Change this entry</span>
16- </a>
17+ tal:attributes="href entry/fmt:url"
18+ ><span class="invisible-link">Change this entry</span></a>
19 </tal:block>
20 </td>
21 </tr>