Mercurial > public > sg101
view gpp/templates/downloads/add.html @ 265:1ba2c6bf6eb7
Closing #98. Animated GIFs were losing their transparency and animated properties when saved as avatars. Reworked the avatar save process to only run the avatar through PIL if it is too big. This preserves the original uploaded file if it is within the desired size settings. This may still mangle big animated gifs. If this becomes a problem, then maybe look into calling the PIL Image.resize() method directly. Moved the PIL image specific functions from bio.forms to a new module: core.image for better reusability in the future.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 24 Sep 2010 02:12:09 +0000 |
parents | 27bee3ac85e6 |
children | 88b2b9cb8c1f |
line wrap: on
line source
{% extends 'base.html' %} {% load downloads_tags %} {% load core_tags %} {% block title %}Add Download{% endblock %} {% block custom_css %} {{ add_form.media }} <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" /> {% endblock %} {% block content %} <h2>Downloads</h2> {% include 'downloads/navigation.html' %} <h3>Add Download</h3> <p>Use the following form to upload a file. Please note the following:</p> <ul> <li>Please submit an upload only once.</li> <li>All files are reviewed before being made available in the Downloads area.</li> <li>Only certain file types are allowed.</li> <li>Your username and IP address will be recorded, so please do not abuse the system.</li> </ul> <h4>Terms of Use</h4> <p>By uploading a file, you agree to the following terms:</p> <ol> <li>You are allowing SurfGuitar101 to host the file for an undetermined amount of time.</li> <li>This agreement will serve as your "Written" consent for SurfGuitar101 to host the file.</li> <li>The owners of SurfGuitar101 are absolved of any liability claims resulting from the use of or hosting of your file.</li> <li>You acknowledge you have permission to upload and distribute the file.</li> <li>The file may be removed at any time at the discretion of the staff of SurfGuitar101.</li> </ol> <form action="." method="post" enctype="multipart/form-data" id="downloads-add">{% csrf_token %} <fieldset> <legend>Upload Form</legend> <table> {{ add_form.as_table }} <tr> <th> </th> <td> {% comment_dialogs %} <input type="submit" name="submit_button" value="Add Download" /> </td> </table> </fieldset> </form> {% endblock %}