Feature #400 - Resize images to fit on page - Additions
authorJoar Wandborg <git@wandborg.com>
Sun, 3 Jul 2011 03:46:00 +0000 (05:46 +0200)
committerJoar Wandborg <git@wandborg.com>
Sun, 3 Jul 2011 03:46:00 +0000 (05:46 +0200)
commit2c9e635ae2ecbef0649df78636503be357f16a7f
treeb3f3c80c29c434c89b0d43f02e708a3610d7e5c7
parent93214d8e0287150aef3f4370237303bc73ec448c
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()`
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/process_media/__init__.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/util.py