andrew/24pullrequests — pull request #486 by pimterry (2013-12-07 21:51:14+00:00)
Title: Fix broken user profile link bug

If you go to an organisation's 24PRs page (e.g. http://24pullrequests.com/organisations/Softwire) and click on a users picture, in the list below (not the members list), it takes you to 24pullrequests.com/organisations/USERNAME, which is clearly wrong, and will give you a 404.

This patch fixes that by using user_path instead, to get the full URL for the user nick, as in _user.html.haml.

(I should note that I've done this whole change entirely through the github interface, because I'm on windows with x64 Ruby atm and getting all the Ruby deps building properly to run 24PRs locally is near impossible, so I haven't tested this *at all*. Still, it's so small it can't possibly fail, right?)