[rails3-upgrade] Abstracted out navigation panel to DRY out code