Closed Bug 490489 Opened 16 years ago Closed 16 years ago

Add "Next" and "Previous" links to pagination

Categories

(support.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: paulc)

References

()

Details

(Whiteboard: tiki_fixed)

Attachments

(1 file)

Currently pagination has "<<" and ">>" to navigate to the next and previous page. It is more user-friendly to specify "<<-Previous" and "Next->>" Current: <<1 2 3...n >> Expected: Previous 1 2 3 ...n Next OR <<-Previous 1 2 3...n Next->>
I'd make that "<< Previous" and "Next >>" (replace the - with space)
I'd like to make clear which places we'd like to see this happen. There are quite a few templates that use pagination. Krupa, could you maybe walk through the site and point out where this pagination occurs? E.g. the .php files or URLs
Assignee: nobody → paul.craciunoiu
Search results dont have "<< Previous" and "Next >>" links. For eg: https://support-stage.mozilla.org/tiki-newsearch.php?where=f&locale=en-US&q=browser&sa= Forum topics and knowledge base article listings have these links.
This patch does several things: * change the hardcoded "10" from results per page in make_link_pages to $length (should have been used instead) * adds "<< Previous" and "Next >>" links when there is a next/previous page * updates CSS spacing, as with word-spacing: 10px the "<<" and "Previous" (and "Next" and ">>", respectively) are too far apart. Padding achieves the same result and makes more sense * updates the make_links_pages function to output a <span> with class "current_page" for the current page, which is how we had it in our search results previously and gives better control over the current page element (previously was just plain text directly into the HTML) I know this seems long but it should be easy to test :)
Attachment #376792 - Flags: review?(laura)
Comment on attachment 376792 [details] [diff] [review] Patch: proposed fix, v1 Eric, by all means, if you have time...
Attachment #376792 - Flags: review?(smirkingsisyphus)
Attachment #376792 - Flags: review?(laura) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I think stage and production have been rolled back to 1.0.2, were they rolled back after that? I don't they were. The links should definitely be there. Laura?
Paul, please close this. Bug 493674 is now fixed; thanks!
Roger that. Closed as per bug 493674.
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
To be clear I reopened the bug coz the chevron wraps to the next line.
Cool. Thanks Krupa, will do some CSSing
r25987 / r25988 Less padding. It should fit now :)
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Filed a regression -Bug 494086 Marking this as verified.
Status: RESOLVED → VERIFIED
Comment on attachment 376792 [details] [diff] [review] Patch: proposed fix, v1 Just going through my r? list
Attachment #376792 - Flags: review?(smirkingsisyphus)
Whiteboard: tiki_bug
Whiteboard: tiki_bug → tiki_fixed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: