Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | I have a strong preference for aligning all parameters in a function call. | Christopher Allan Webber | 2011-06-05 | 1 | -2/+4 | |
| | ||||||
* | Reformat render_to_response calls | Elrond | 2011-06-05 | 1 | -8/+8 | |
| | | | | | Just a simple indentation and ordering change, no functional change. | |||||
* | Create render_to_reponse and use it everywhere. | Elrond | 2011-06-05 | 1 | -8/+6 | |
| | | | | Just a shortcut for Response(render_template(...)) | |||||
* | Moving all views over to using util.render_template()! | Christopher Allan Webber | 2011-06-04 | 1 | -12/+8 | |
| | ||||||
* | modified atomfeed feature, corrected spacing, url generation, routing id | Bernhard Keller | 2011-05-23 | 1 | -0/+34 | |
| | ||||||
* | Update all the views so that they use the uploader reference instead | Christopher Allan Webber | 2011-05-22 | 1 | -1/+1 | |
| | | | | of uploader embedding | |||||
* | This check is redundant now that it's handled by the decorator. | Christopher Allan Webber | 2011-05-20 | 1 | -4/+0 | |
| | ||||||
* | Make sure that a MediaEntry does belong to this appropriate user in | Christopher Allan Webber | 2011-05-20 | 1 | -2/+2 | |
| | | | | the decorator. (Thanks Elrond) | |||||
* | Cosmetic changes: removed an unused import, stripped some trailing whitespace. | Christopher Allan Webber | 2011-05-20 | 1 | -1/+1 | |
| | ||||||
* | MediaEntry slugs usable in URLs, & decorator that grabs media from the request | Christopher Allan Webber | 2011-05-20 | 1 | -9/+4 | |
| | ||||||
* | One more mild styling tweak | Christopher Allan Webber | 2011-05-19 | 1 | -3/+4 | |
| | ||||||
* | Reorganizing the uses_pagination decorator a little and having it pass | Christopher Allan Webber | 2011-05-19 | 1 | -3/+3 | |
| | | | | in the page number to the view | |||||
* | Merge remote branch 'remotes/hanaku/pagination' | Christopher Allan Webber | 2011-05-19 | 1 | -5/+18 | |
|\ | | | | | | | | | Conflicts: mediagoblin/user_pages/views.py | |||||
| * | moved check for correct page values into decorator for view function | Bernhard Keller | 2011-05-19 | 1 | -6/+5 | |
| | | ||||||
| * | removed request arg from Pagination class | Bernhard Keller | 2011-05-19 | 1 | -2/+7 | |
| | | | | | | | | | | added get_page_url() in Pagination class, to generate proper urls without losing other get arguments | |||||
| * | changed some coding styles and changed the interface for pagination from ↵ | Bernhard Keller | 2011-05-19 | 1 | -7/+8 | |
| | | | | | | | | | | | | __call__ to the __init__, also getting a cursor as input, instead of the query details | |||||
| * | added Pagination class, usage description in Pagination,__call__ | Bernhard Keller | 2011-05-18 | 1 | -7/+16 | |
| | | | | | | | | added pagination.html, object_gallery.html as templates | |||||
* | | Clean unused imports (found by pyflakes). | Elrond | 2011-05-18 | 1 | -1/+0 | |
| | | ||||||
* | | Move ObjectId, DESCENDING to db.util | Elrond | 2011-05-18 | 1 | -2/+1 | |
|/ | | | | | | We used to import those from pymongo and mongokit directly. We should import them from a single place. So let's try db.util for this. | |||||
* | Show images in reverse submit order | Sebastian Spaeth | 2011-05-16 | 1 | -1/+2 | |
| | | | | | | | Fixes bug #327. Just do a .sort('created', DESCENDING) on Media when showing them to show the latest first. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> | |||||
* | Improve user homepage | Sebastian Spaeth | 2011-05-12 | 1 | -9/+16 | |
| | | | | | | | | | | | | | 1) Only consider user's with 'status': 'active'. We don't want to display unconfirmed/blocked users, right? 2) Actually query user's media in the view and display on their home page. 3) Throw an error 404 if we don't find a valid user, rather than saying, "User not found" (from within the template). 4) Pass in medias as media_entries to remain compatible with the 'root' page. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> | |||||
* | 404 appropriately here | Christopher Allan Webber | 2011-05-10 | 1 | -4/+4 | |
| | ||||||
* | Implement simple media detail page | Sebastian Spaeth | 2011-05-10 | 1 | -0/+52 | |
This patch creates a "homepage" for each media. The URL is /u/<username>/m/<objID>. On it we display the media and some details. It is ugly and lacking some stuff but it works. The only thing left to do is to throw an 404 error if the <username> and the media uploader don't correspond. - Also create a user "home page" while at it. It is merely a place holder for now though. - Link from the entries on the homepage, to the media pages, so we actually find them. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> |