Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor change to indentation | Christopher Allan Webber | 2011-08-10 | 1 | -2/+2 |
| | |||||
* | Ooops! We should do a fake ugettext passthrough here also. | Christopher Allan Webber | 2011-08-10 | 1 | -1/+1 |
| | |||||
* | Removing a tab. This is a tab-free zone! | Christopher Allan Webber | 2011-08-10 | 1 | -1/+1 |
| | |||||
* | Converting all forms to use the "fake/null" gettext conversion function | Christopher Allan Webber | 2011-08-10 | 1 | -3/+6 |
| | | | | | Gettext doesn't actually get run right in the form but we do need to wrap the strings in _() so stuff extracts :) | ||||
* | For no good reason, I feel like 15 is a good number of default feed items. | Christopher Allan Webber | 2011-07-31 | 1 | -1/+1 |
| | |||||
* | Tweaks import lines switching \ for ( ). | Will Kahn-Greene | 2011-07-30 | 1 | -2/+2 |
| | |||||
* | Adds license header | Will Kahn-Greene | 2011-07-30 | 1 | -0/+17 |
| | |||||
* | Give useful verification information on users that need to verify their email | Christopher Allan Webber | 2011-07-28 | 1 | -2/+6 |
| | |||||
* | Updated `MediaCommentForm.field_comment` => `MediaCommentForm.comment_content` | Joar Wandborg | 2011-07-07 | 2 | -22/+23 |
| | | | | * Also changed file encoding of `user_pages/forms.py` from dos to unix. | ||||
* | Issue #431 - Prevent comment link expiry - Added functionality for comment ↵ | Joar Wandborg | 2011-07-07 | 3 | -4/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 gallery | Christopher Allan Webber | 2011-07-02 | 1 | -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 Wandborg | 2011-07-01 | 1 | -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 Webber | 2011-06-29 | 1 | -0/+6 |
| | |||||
* | Use the cleaned_markdown_conversion method instead of doing that manually | Christopher Allan Webber | 2011-06-29 | 1 | -8/+5 |
| | |||||
* | Issue #362 - Added new `wtforms.Form`; `MediaCommentForm()` | Joar Wandborg | 2011-06-29 | 1 | -0/+21 |
| | | | | | * ADDED `MediaCommentForm` is a form for `MediaComment` user entry and posting. | ||||
* | Issue #362 - Updated `mediagoblin.user_pages.views` to handle new "Simple ↵ | Joar Wandborg | 2011-06-29 | 1 | -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` | ||||
* | Issue #362 - Added a route to MediaComment POST handler | Joar Wandborg | 2011-06-29 | 1 | -1/+4 |
| | |||||
* | Merge remote branch 'remotes/jwandborg/issue_363' | Christopher Allan Webber | 2011-06-19 | 1 | -2/+2 |
|\ | | | | | | | | | Conflicts: setup.py | ||||
| * | Added Markdown rendering for `media_entry` | Joar Wandborg | 2011-06-12 | 1 | -2/+2 |
| | | |||||
* | | user_gallery controller calls render_to_reponse | cfdv | 2011-06-16 | 1 | -9/+6 |
| | | |||||
* | | adds routing.py and view.py changes | cfdv | 2011-06-16 | 2 | -0/+32 |
|/ | |||||
* | 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 |
| | |||||
* | Mount media editing under /u/{username}/m/{media}/edit/ | Christopher Allan Webber | 2011-06-04 | 1 | -0/+2 |
| | |||||
* | modified atomfeed feature, corrected spacing, url generation, routing id | Bernhard Keller | 2011-05-23 | 2 | -1/+37 |
| | |||||
* | 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 | 2 | -10/+5 |
| | |||||
* | 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> | ||||
* | Removing the raw string-ness | Christopher Allan Webber | 2011-05-13 | 1 | -1/+1 |
| | |||||
* | 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> | ||||
* | URLs should end in trailing slashes, or slash redirection doesn't work | Christopher Allan Webber | 2011-05-11 | 1 | -3/+3 |
| | |||||
* | 404 appropriately here | Christopher Allan Webber | 2011-05-10 | 1 | -4/+4 |
| | |||||
* | Implement simple media detail page | Sebastian Spaeth | 2011-05-10 | 3 | -0/+76 |
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> |