w7cook/OpenBook — pull request #195 by darbs (2012-04-19 21:44:52+00:00)
Title: Page improvements

Created PGEphotos.java as kind of a controller for page/group/events, since we have no clear way to discern photos between users, pages, events etc. Right now only only works for pages but is kind of a skeleton to use to add photos to events and groups if we choose too. Feel free to add or change if we find something better.

Added enum type to Photo.java to help distinguish photos from regular user photos.and a new constructor for Photos to correlate with PGEphotos.java. This new constructor takes in Photo.type that can be {PAGE, EVENT, GROUP} along with that objects id. This way photos can be loaded to the appropriate object.

Created page bar similar to facebook's pre-timeline. Also implemented profile pictures for pages. These profile pictures are used as links when listing out the pages.

Added in jQueryUI under Public/Javascripts/ its used in the admin section of pages that displays only when a user is an admin. It has some interesting features documentation is available at http://jqueryui.com/home.

Known issues:
photos uploaded by an admin of the page show up as their own pictures too
no way to delete photos yet