Merge lp:~bac/launchpad/hidden_links into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12626 |
Proposed branch: | lp:~bac/launchpad/hidden_links |
Merge into: | lp:launchpad |
Diff against target: |
322 lines (+81/-55) 6 files modified
lib/canonical/launchpad/browser/launchpad.py (+27/-0) lib/canonical/launchpad/doc/menus.txt (+25/-15) lib/canonical/launchpad/templates/launchpad-inline-link.pt (+18/-34) lib/canonical/launchpad/webapp/interfaces.py (+6/-0) lib/canonical/launchpad/webapp/menu.py (+2/-1) lib/lp/app/browser/tests/menu.txt (+3/-5) |
To merge this branch: | bzr merge lp:~bac/launchpad/hidden_links |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | ui | Approve | |
Tim Penhey (community) | Approve | ||
Review via email: mp+53911@code.launchpad.net |
Commit message
[r=thumper]
Description of the change
= Summary =
We have a need to have a link enabled but hidden which will subsequently
be made visible via JavaScript. If it were not hidden then browsers
which don't support JavaScript would see the link which would be a dead-end.
That said, this branch modifies the Link mechanism to add a 'hidden'
attribute. Links that are hidden but enabled will be rendered with the
class 'invisible-link'.
== Proposed fix ==
As above.
== Pre-implementation notes ==
Talk with Curtis.
== Implementation details ==
As above.
== Tests ==
bin/test -vvt doc/menus.txt
== Demo and Q/A ==
None
= Launchpad lint =
Checking for conflicts and issues in changed files.
I may fix these pre-existing problems but I may not.
Linting changed files:
lib/canonical
lib/canonical
lib/canonical
lib/canonical
./lib/canonical
879: redefinition of unused 'StartRequestEvent' from line 871
42: 'UnexpectedForm
279: E301 expected 1 blank line, found 0
281: E202 whitespace before ')'
289: E302 expected 2 blank lines, found 1
309: E202 whitespace before ')'
314: E301 expected 1 blank line, found 0
317: E301 expected 1 blank line, found 0
319: E301 expected 1 blank line, found 0
321: E301 expected 1 blank line, found 0
428: E301 expected 1 blank line, found 0
435: E301 expected 1 blank line, found 0
443: E301 expected 1 blank line, found 0
458: E301 expected 1 blank line, found 0
502: E302 expected 2 blank lines, found 1
549: E302 expected 2 blank lines, found 1
611: E202 whitespace before ')'
644: E202 whitespace before ')'
756: E301 expected 1 blank line, found 0
826: E301 expected 1 blank line, found 0
873: E301 expected 1 blank line, found 0
879: E301 expected 1 blank line, found 2
200: Line exceeds 78 characters.
./lib/canonical
1: narrative uses a moin header.
6: narrative uses a moin header.
55: narrative uses a moin header.
102: source exceeds 78 characters.
164: narrative uses a moin header.
253: narrative uses a moin header.
333: source exceeds 78 characters.
370: narrative uses a moin header.
429: narrative uses a moin header.
501: narrative uses a moin header.
568: narrative uses a moin header.
576: source exceeds 78 characters.
688: narrative uses a moin header.
878: narrative uses a moin header.
897: narrative uses a moin header.
909: narrative uses a moin header.
Hi Brad,
Nothing wrong with the concept, but I have a few comments
on the implementation.
Can we not have a single tal expression to render the link?
Move the full class definition into the view object, and should
specify the invisible-link or not. Also avoiding the inline
style of "line-height: 20px". That should be moved to a class
style in our stylesheet for invisible-link.
Also the anchor tag specifying empty href, class and title
attributes had me confused until I looked at the tal:attributes.
I find they detract more than they help. Can you remove them?