Evan Martin (evan) wrote in lj_dev,
Evan Martin
evan
lj_dev

Some browsers (Mozilla, at least) have a "Site Navigation Bar" that optionally shows when a site provides some internal links. LiveJournal now provides the RSS link, so the bar keeps popping up. I thought I'd might as well make it useful.

This patch makes the "previous", "next", and sometimes "last" links do The Right Thing, skipping entries in the lastn and friends views and days in the day view. It behaves just like the skiplinks (except that "last" goes to the most recent entries on lastn and friends view).

Disadvantages:
- Had to move the building of the page head to the bottom of the page creation functions, because the skip information is only calculated at the end. I don't see any problems with this but there could be.
- Labels for the skiplink buttons (shown in Mozilla as tooltips) are in English.

Testing requested:
http://bunny.darktech.org/
User "test", password "test". Look at their lastn, friends, and day views. (I set them to view only a few entries per page so I could see the results easier.)





The patch:
http://bunny.darktech.org/patches/views.patch
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 5 comments