joindin/joind.in — pull request #482 by ThijsFeryn (2012-04-07 21:53:21+00:00)
Title: Added event rating support as requested in JOINDIN-135

Added event rating support as requested in JOINDIN-135.

I recycled the rating logic that was used for talks. I added a rating field to the event_comments table and created a MySQL function get_event_rating .

I patched the changes in the event model, the event comment model, the even controller and the necessary views. I made sure admin users can't rate their own events.

*NOTICE*: this is my very first time playing around with Joind.in code. Please do a detailed audit on these commits to avoid a massive #fail