922 Commits

Author SHA1 Message Date
Caleb Forbes Davis V
42de4c5379 moves edit profile link to user page 2011-07-03 02:37:19 -05:00
Joar Wandborg
4dc7444119 Feature #409 - Submitting an image should redirect you back to user's
page w/ a message

*   Successful submission redirects to the logged in user's page
    (your own, presumably).
*   "Woohoo! Submitted!" is launched into the tube of session messages
    to appear on next pageload. If you're not aborting in the window
    of 210ms it takes for the client to respond to the 302 and load
    the logged in user's/your page that is, YMMV.
2011-07-03 07:50:35 +02:00
Joar Wandborg
380ac094f6 Removed debug code, erroneously included in my last commit 2011-07-03 06:37:40 +02:00
Joar Wandborg
2c9e635ae2 Feature #400 - Resize images to fit on page - Additions
*   `migrations.py`
    *   Removed empty line
    *   Added empty line
*   `models.py`
    *   Added `MediaEntry.get_display_media()` helper function
*   `process_media.__init__.py`
    *	Updated `process_media_initial()`
    	*   Renamed `main` => `original`.
	*   Added condition to `medium`, it's only created if the original
	    dimensions exceed the MEDIUM_SIZE dimensions.
*   `media.html`
    *	The image tag is now populated by `MediaEntry.get_display_media()`
*   `util.py`
    *	Added `DISPLAY_IMAGE_FETCHING_ORDER`, used by `MediaEntry.get_display_media()`
2011-07-03 05:46:00 +02:00
Christopher Allan Webber
5949be9ad6 Make pagination on user profile point to the user gallery
This required a couple of changes:
 - making a new render_pagination macro
 - switching things over to use that
2011-07-02 22:09:46 -05:00
Christopher Allan Webber
d729012dd9 Just some spacing changes in profile.html 2011-07-02 21:31:25 -05:00
Christopher Allan Webber
30d6ecf6ed We should link to the user's gallery, not the logged in person's gallery. 2011-07-02 21:31:04 -05:00
Christopher Allan Webber
230e1bd770 Merge remote branch 'remotes/gullydwarf-cfdv/f401_prev_next_media_nav'
Conflicts:
	mediagoblin/db/models.py
	mediagoblin/templates/mediagoblin/user_pages/media.html
2011-07-02 21:16:39 -05:00
Christopher Allan Webber
68b86d7ce9 Let users write their own config and paste files w/o affecting git 2011-07-02 19:01:55 -05:00
Christopher Allan Webber
cd1e3ca940 Merge remote branch 'remotes/elrond/idea/lazyserver' 2011-07-02 19:00:58 -05:00
Christopher Allan Webber
d8db3f112e Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page'
Conflicts:
	mediagoblin/templates/mediagoblin/user_pages/media.html
2011-07-02 19:00:01 -05:00
Elrond
472a83879d Improve lazyserver.sh to handle args
Run "./lazyserver.sh -h" to learn more.
2011-07-03 01:57:08 +02:00
Christopher Allan Webber
841110a75d Only show pagination if we have pages to show 2011-07-02 18:31:02 -05:00
Joar Wandborg
93214d8e02 Feature #400 - Resize images to fit on page
*   `mediagoblin.process_media.__init__`
    *   Added `medium` size image conversion
    *  	Updated `thumbnail` conversion to use `queued_filename` instead
        of `queued_file`
*   `media.html`
    *   If there exists a `medium` size for the `MediaEntry`, it will
        display instead of the original `main` image.
2011-07-03 01:30:07 +02:00
Christopher Allan Webber
f9f135647c Issue 406: media_details template deprecated. Removing! 2011-07-02 17:49:51 -05:00
Christopher Allan Webber
316855fa44 Merge remote branch 'remotes/gullydwarf-cfdv/b404_edit_profile_navfix' 2011-07-02 17:46:26 -05:00
Christopher Allan Webber
a24dbd451c Note from Chris Webber prefacing Elrond's DB abstraction idea. 2011-07-02 17:05:13 -05:00
Christopher Allan Webber
c0d532f04e Merge remote branch 'remotes/elrond/idea/db_doc' 2011-07-02 17:01:43 -05:00
Christopher Allan Webber
5d5eb6c331 Merge remote branch 'remotes/elrond/dev/init' 2011-07-02 15:48:49 -05:00
Elrond
421129b6bb Move config.py to init/
Some simple changes needed to do that.

The interesting question left:
Should config_spec.ini also be moved?
2011-07-02 22:40:19 +02:00
Christopher Allan Webber
2110408f44 Merge remote branch 'remotes/jwandborg/feature_362-simple_comments-acts_on_feedback'
Conflicts:
	mediagoblin/templates/mediagoblin/user_pages/media.html
2011-07-02 14:39:35 -05:00
Christopher Allan Webber
29f9df7b27 Removing that 'temporarily, an "image gallery" that isn't one really ;)' text 2011-07-02 14:34:39 -05:00
Christopher Allan Webber
082a675fcd the delete text should be flush against the image since the edit text is 2011-07-02 14:32:54 -05:00
Christopher Allan Webber
6f65e9eb90 More spacing / newline changes to media.html 2011-07-02 14:30:33 -05:00
Christopher Allan Webber
f6c49c5e62 Not sure what these fields are here commented out for... removing 2011-07-02 14:29:47 -05:00
Christopher Allan Webber
ab6fffedf8 Cleaning up some indentation in media.html 2011-07-02 14:28:57 -05:00
Christopher Allan Webber
bd9e3bbc2a images/iconFoo.png filenames -> icon/icon_foo.png
I have a thing against mixedCase :)
2011-07-02 14:26:18 -05:00
Christopher Allan Webber
b28e91ce18 Merge remote branch 'remotes/schendje/master' 2011-07-02 14:13:48 -05:00
Elrond
42ef819cbb Move get_jinja_loader to init submodule. 2011-07-02 20:50:31 +02:00
Elrond
073b61fe53 Move mediagoblin.celery_setup -> mediagoblin.init.celery
As the first target of the new .init. submodule move
celery_setup there. Quite straight forward, just a lot of
places to change.
2011-07-02 20:50:23 +02:00
Elrond
1b579e18d8 Start mediagoblin.init 2011-07-02 20:25:09 +02:00
Caleb Forbes Davis V
9c0fe63fad adds previous and next links in the sidebar
Feature #401 - previous/next navigation on media pages
* media.html includes a new prev_next.html template containing the links
* prev_next.html calls functions added to the media model to retrieve
  the appropriate objects from the database, formatted with urlgen
* a small change to util.py brings ASCENDING into the mix
2011-07-02 06:15:58 -05:00
Caleb Forbes Davis V
d9ed098e74 Bug #404 - Successful profile edit is successful!
user is notified of successful profile edit w/o extra navigation
2011-07-01 22:33:54 -05:00
Joar Wandborg
fe5f8a281a Merge branch 'master' of http://git.gitorious.org/mediagoblin/mediagoblin 2011-07-01 22:02:58 +02:00
Jef van Schendel
bf332e827e Tiny pagination style changes 2011-07-01 20:14:38 +02:00
Jef van Schendel
c26601a8a6 Remove dotted_line style from css 2011-07-01 20:09:51 +02:00
Jef van Schendel
f188463b46 Fix tiny pagination error: missing end tag 2011-07-01 20:08:12 +02:00
Jef van Schendel
eed7e0587c Remove strong style from pagination 2011-07-01 19:57:23 +02:00
Jef van Schendel
b611476c94 Reorder media.html (comments, icons, links, layout) 2011-07-01 18:59:07 +02:00
Jef van Schendel
c13ce79abb Reorganize media.html, comment part 2011-07-01 17:28:55 +02:00
Jef van Schendel
13b4cbf014 Put comment author/date on the left 2011-07-01 17:25:15 +02:00
Jef van Schendel
6ef36a15f2 Add delete and edit icons 2011-07-01 17:20:22 +02:00
Jef van Schendel
f1e053e074 Fix first part of issue 402 - small images are no longer enlarged to 640px 2011-07-01 15:47:37 +02:00
Jef van Schendel
68c6521e04 Add feed icon 2011-07-01 15:43:05 +02:00
Jef van Schendel
270dca58af Style comments (first draft only) 2011-07-01 15:41:44 +02:00
Joar Wandborg
6f59a3a324 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.
2011-07-01 15:26:29 +02:00
Will Kahn-Greene
0e3400357d Removes spurious file
Matt added this file ages ago, but it's just an empty file, so I'm removing
it.
2011-07-01 06:24:34 -04:00
Chris Moylan
5e008b93f4 Merge branch 'master' into test_submission_views_365 2011-06-30 18:33:35 -05:00
Christopher Allan Webber
90828d9d8d Actually make use of CELERY_SETUP in from_tests.py 2011-06-30 16:57:55 -05:00
Elrond
3f9d93407b Document the db submodule a bit
Document the ideas behind the db submodule.
And document what that actually means.
2011-06-30 23:27:52 +02:00