enspiral/loomio — pull request #240 by drew1080 (2012-07-27 19:45:50+00:00)
Title: Feature/nav shortcuts

Press "i" then show_group_homepage() - return to group landing page
Press "j" then show_older_discussion() - if no more unread, then show next based on time
Press "k" then show_newer_discussion() - if no more unread, then show next based on time
Press "g" then show_group_dropdown() - show group dropdown. Adding typing to find groups is a fairly large feature, so I say lets have that as a separate effort from this.

Features:
Discussion page tabindex order: Comment box, Post comment, Create new proposal, Options
Number of unread items in a group could be shown on the groups drop down.
Add previous and next buttons to the discussion page for next and previous unread loomios.

***Possible issue: If a discussion does not have a last_comment_at date specified, then the newer and older buttons could cause an infinite loop. Were all of the discussions on production backdated to have last_comment_at dates? If not, we could write a script to update them, or I can add additional error handling to the code.