upper and lower batch navigators create duplicate and invalid ids
Bug #637654 reported by
Curtis Hovey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Robert Collins |
Bug Description
batchnavigator-
The simple fix is to concatenate unique table class to the ids to ensure they are unique for the navigator
Related branches
lp://staging/~lifeless/launchpad/registry
- Curtis Hovey (community): Approve (code)
- Launchpad code reviewers: Pending requested
-
Diff: 107 lines (+36/-13)3 files modifiedlib/lp/registry/browser/team.py (+17/-4)
lib/lp/registry/interfaces/mailinglist.py (+3/-1)
lib/lp/registry/model/mailinglist.py (+16/-8)
Changed in launchpad-foundations: | |
milestone: | none → 10.10 |
assignee: | nobody → Robert Collins (lifeless) |
status: | Triaged → In Progress |
tags: |
added: qa-ok removed: qa-needstesting |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think this is the fix:
=== modified file 'lib/canonical/ launchpad/ templates/ batchnavigator- navigation- links.pt' launchpad/ templates/ batchnavigator- navigation- links.pt 2010-02-25 00:47:17 +0000 launchpad/ templates/ batchnavigator- navigation- links.pt 2010-09-13 22:57:52 +0000
class= "batch- navigation- links">
tal: condition= "first_ page_url" "href first_page_url" "href first_page_url; ${view/ css_class} -batchnav- first"
class= "first"
rel= "first" "not:first_ page_url" class="first inactive"
tal: condition= "prev_page_ url" "href prev_page_url" "href prev_page_url; ${view/ css_class} -batchnav- previous"
class= "previous" previous"
rel= "previous"
>Previous< /a> "not:prev_ page_url" class="previous inactive"
tal: condition= "next_page_ url" "href next_page_url" "href next_page_url; ${view/ css_class} -batchnav- next"
class= "next"
rel= "next"
><strong> Next</strong> </a>
tal: condition= "last_page_ url" "href last_page_url" "href last_page_url; ${view/ css_class} -batchnav- last"
class= "last"
rel= "last"
>Last< /a> "not:last_ page_url" class="last inactive"
--- lib/canonical/
+++ lib/canonical/
@@ -27,9 +27,9 @@
<a
- tal:attributes=
+ tal:attributes=
+ id string:
- id="batchnav_first"
>First</a>
<span tal:condition=
@@ -37,9 +37,9 @@
•
<a
- tal:attributes=
+ tal:attributes=
+ id string:
- id="batchnav_
<span tal:condition=
@@ -47,8 +47,8 @@
•
<a
- tal:attributes=
- id="batchnav_next"
+ tal:attributes=
+ id string:
@@ -58,9 +58,9 @@
•
<a
- tal:attributes=
+ tal:attributes=
+ id string:
- id="batchnav_last"
<span tal:condition=