Issue #362 - Simple comments - Changes based on feedback recieved from #mediagoblin
authorJoar Wandborg <git@wandborg.com>
Fri, 1 Jul 2011 13:26:29 +0000 (15:26 +0200)
committerJoar Wandborg <git@wandborg.com>
Fri, 1 Jul 2011 13:26:29 +0000 (15:26 +0200)
commit6f59a3a32470b4d83ab94fe7c4dae83943500329
tree3310a90ea298a8c1143035d878a34153d87270fe
parent40d18ad4c6d66d6db1aaf43df8d6ba23d162f77f
Issue #362 - Simple comments - Changes based on feedback recieved from #mediagoblin

*   `db.models` - Removed `MediaEntry.get_comments()` and replaced it with a helper
    which just returns a cursor for the comments query
*   `media.html` - Added `{% set comment_author = comment.author() %}`
*   `user_pages.views` - media_home() now passes `MediaEntry.get_comments()`
    directly to `Pagination`, handles pagination for comments.
    *   Added `MEDIA_COMMENTS_PER_PAGE` to define the number of comments per page
        in the `media_home()` view.
mediagoblin/db/models.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/user_pages/views.py