aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/views.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace media.get_uploader()._id by media.uploaderElrond2011-12-241-1/+1
| | | | | | media.get_uploader()._id loads a complete user object without actually needing it, because media.uploader already has the id!
* Dot-Notation for MediaEntry.media_typeElrond2011-12-051-1/+1
|
* Dot-Notation for Users.is_adminElrond2011-12-051-1/+1
|
* Dot-Notation for Users.statusElrond2011-12-051-2/+2
|
* Dot-Notation for Users.usernameElrond2011-12-051-2/+2
|
* Changed comment error message wording slightly. Btw, should we translate ↵Jef van Schendel2011-12-031-2/+2
| | | | these things?
* Merge remote-tracking branch 'remotes/jwandborg/master'Christopher Allan Webber2011-11-241-1/+5
|\
| * Merge branch 'video_gstreamer-only'Joar Wandborg2011-11-211-1/+5
| |\ | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/submit/views.py
| | * Multimedia support - Commiting from a not yet finished state - Details belowJoar Wandborg2011-09-231-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DONE Initially testing with arista ** DONE Video display templates *** TODO Multi-browser support ** TODO Video thumbnails ** TODO Link to original video ** TODO Video cropping Also contains a lot of "debug" print's
* | | Rename MediaEntry.uploader() to .get_uploader()Elrond2011-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The .uploader() method conflicts with the uploader database field. As we're moving to .FIELD for db field access, this is a relevant conflict. So renaming .uploader() to .get_uploader()
* | | Wrap long line.Elrond2011-11-221-1/+2
| | | | | | | | | | | | Nothing else.
* | | Added a message noticing the user the image has been successfullyPablo J. Urbano Santos2011-11-221-1/+2
| | | | | | | | | | | | deleted.
* | | Fixes #597. Add a visible error when user tries to delete an imagePablo J. Urbano Santos2011-11-221-0/+3
|/ / | | | | | | without cheking the "I'm sure" checkbox.
* | Allow user to set whether comments are ascending or descendingChristopher Allan Webber2011-11-191-2/+6
| |
* | media_home: order comments by ascending date.Pablo J. Urbano Santos2011-11-191-2/+2
| |
* | Dot-Notation for "_id"Elrond2011-11-151-9/+9
| | | | | | | | | | | | | | | | | | Note: Migrations can't use "Dot Notation"! Migrations run on pymongo, not mongokit. So they can't use the "Dot Notation". This isn't really a big issue, as migrations are anyway quite mongo specific.
* | Merge remote-tracking branch 'remotes/nyergler/pep8-ification'Christopher Allan Webber2011-11-131-3/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
| * | Whitespace and formatting cleanup.Nathan Yergler2011-10-011-5/+8
| |/ | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
* | Removed the bloof print debuggingChristopher Allan Webber2011-11-021-1/+0
| |
* | Make sure you can't force comments on entries that don't exist.Christopher Allan Webber2011-11-021-5/+8
| | | | | | | | See: http://bugs.foocorp.net/issues/621
* | Make Comment posted! translatable.Aaron Williamson2011-10-041-1/+1
| |
* | Added a check to prevent blank messages from being posted.Aaron Williamson2011-10-031-5/+10
| |
* | Finished splitting util.py into separate files.Aaron Williamson2011-10-011-3/+4
| |
* | Moved common, translation, template, and url code out of util.py and into ↵Aaron Williamson2011-10-011-1/+1
|/ | | | tools/[file].py
* Use media.url_for_self() instead of generating itElrond2011-09-091-3/+2
| | | | | | Some places used to generate the URL for a media entry on their own instead of calling media.url_for_self() to do that. The later handles missing slugs better.
* Page Redesign to Delete confirmation pageShawn Khan2011-09-051-1/+1
|
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* Caution the admins about deleting the users' media though.Christopher Allan Webber2011-08-301-0/+8
|
* Feature #403 - Ability to delete media entries - Fixes according to feedbackJoar Wandborg2011-08-301-2/+32
| | | | | | | | | | * Moved `mediagoblin.confirm` stuff to `mediagoblin.user_pages`, templates too. * Removed route extension for `mediagoblin.confirm` * Created `delete_media_files` which deletes all media files on the public_store when the entry is deleted * Created a new decorator to check if a user has the permission to delete an entry.
* Merge remote branch 'remotes/jwandborg/f403_ability_to_delete'Christopher Allan Webber2011-08-281-1/+1
|\ | | | | | | | | | | | | Conflicts: mediagoblin/edit/views.py mediagoblin/templates/mediagoblin/user_pages/media.html mediagoblin/user_pages/routing.py
| * + 'confirm' section for confirmation dialoguesMark Holmquist2011-08-221-1/+1
| | | | | | | | | | + implemented delete functionality * fixed several instances of 'must be an instance of unicode, not str'
* | Merge branch 'master' into jwandborg-f482_media_attachmentsChristopher Allan Webber2011-08-221-7/+58
|\| | | | | | | | | | | | | | | | | Conflicts: mediagoblin/config_spec.ini mediagoblin/edit/forms.py mediagoblin/edit/views.py mediagoblin/submit/views.py mediagoblin/templates/mediagoblin/user_pages/media.html
| * Use render_404 EVERYWHERE!Christopher Allan Webber2011-08-201-7/+8
| |
| * Processing panel viewChristopher Allan Webber2011-08-141-1/+51
| | | | | | | | Now you can view your failed and in-process media items!
| * Removing a tab. This is a tab-free zone!Christopher Allan Webber2011-08-101-1/+1
| |
* | Feature #482 - Media attachments -Joar Wandborg2011-08-221-2/+3
|/ | | | | * Moved attachment uploading to separate view * Support for multiple attachments!
* For no good reason, I feel like 15 is a good number of default feed items.Christopher Allan Webber2011-07-311-1/+1
|
* Tweaks import lines switching \ for ( ).Will Kahn-Greene2011-07-301-2/+2
|
* Give useful verification information on users that need to verify their emailChristopher Allan Webber2011-07-281-2/+6
|
* Updated `MediaCommentForm.field_comment` => `MediaCommentForm.comment_content`Joar Wandborg2011-07-071-1/+1
| | | | * Also changed file encoding of `user_pages/forms.py` from dos to unix.
* Issue #431 - Prevent comment link expiry - Added functionality for comment ↵Joar Wandborg2011-07-071-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linking * `media.html` * Changed comment textarea handle from `comment` => `field_comment` * Active comment is hilighted with the CSS class name `comment_active` and also with the hyperlink anchor #comment * Changed media.html so that pagination always uses Route('mediagoblin.user_pages.media_home') as base_url * `user_pages/forms.py` * Renamed MediaComment form field `comment` => `field_comment` * `user_pages/routing.py` * Added route for `/u/joar/m/123..456/c/234..567/`, points to `media_home` * `user_pages/views.py` * `media_home` now checks if the request contains a comment id parameter then acts accordingly with pagination whether to call it with a `jump_to_id` or not. * `media_post_comment` - Updated MediaCommentForm field name `comment` => `field_comment` * `util.py` * `redirect` now supports querystring arguments. - NOT USED (should we keep it? I think so, it might be useful, sometime [don't call me a code hoarder]). * `Pagination.__init__` now accepts one further argument, the `jump_to_id`. It assist the comment linking functionality in finding and returning the proper page for a comment. This feature will work for all kinds of objects. It might not be optimal, but it is well functional :)
* Make pagination on user profile point to the user galleryChristopher Allan Webber2011-07-021-0/+5
| | | | | | This required a couple of changes: - making a new render_pagination macro - switching things over to use that
* Issue #362 - Simple comments - Changes based on feedback recieved from ↵Joar Wandborg2011-07-011-3/+5
| | | | | | | | | | | | #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.
* Excitedly send a user a message that their comment was posted.Christopher Allan Webber2011-06-291-0/+6
|
* Use the cleaned_markdown_conversion method instead of doing that manuallyChristopher Allan Webber2011-06-291-8/+5
|
* Issue #362 - Updated `mediagoblin.user_pages.views` to handle new "Simple ↵Joar Wandborg2011-06-291-7/+44
| | | | | | | | | comments" feature * ADDED `media_post_comment(request)` which creates `MediaComments` from POST requests * UPDATED `media_home(request, media, **kwargs)` now passes `comments`, `pagination` and `comments_form` to `media.html`
* Merge remote branch 'remotes/jwandborg/issue_363'Christopher Allan Webber2011-06-191-2/+2
|\ | | | | | | | | Conflicts: setup.py
| * Added Markdown rendering for `media_entry`Joar Wandborg2011-06-121-2/+2
| |
* | user_gallery controller calls render_to_reponsecfdv2011-06-161-9/+6
| |
* | adds routing.py and view.py changescfdv2011-06-161-0/+30
|/