instiki - a ruby on rails wiki now hacked for your mobile pleasure

so far, i’ve modded Instiki to have new stylesheets for a cleaner look, and a set of blackberry and mobile device optimizations, including:

  1. adding javascript show/hide for the wiki editing help and hiding it by default
  2. shortening the help text and moving it below the page body when editing so you don’t have to scroll past it
  3. reducing the ROARINGLY LOUD font-size of the page header
  4. when password-protecting your instiki, you’re forced to chose between giving users full edit access plus back-links (”this page is linked to from…”), or no edit access with no back-links. the intertwingledness of back-links with editing privileges didn’t work for me, so i hacked published mode so that back-links work in published and authenticated mode, plus the edit button is now always visible, but if you’re in published (un-authenticated) mode, the edit button will make you login first

once you preview the changes you’ll see that the results are much more usable on a blackberry…

download the rails code at /downloads/jm3-instiki-hacks.diff

apply it via: patch -p0

next hacks:

  1. make search work like back-links — independent of authenticated state
  2. pass the current page to the wiki login controller so that logging in to edit takes you back to the same page and not to the homepage — doh.