annotate gpp/templates/forums/edit_post.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 2d299909e074
children 593fb6dbd449
rev   line source
bgneal@106 1 {% extends 'base.html' %}
bgneal@127 2 {% load forum_tags %}
bgneal@106 3 {% block title %}Forums: Edit Post{% endblock %}
bgneal@106 4 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@106 5 {% block content %}
bgneal@106 6 <h2>Forums: Edit Post</h2>
bgneal@106 7
bgneal@106 8 <h3>
bgneal@106 9 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@106 10 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> &raquo;
bgneal@106 11 <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
bgneal@106 12 </h3>
bgneal@106 13
bgneal@106 14 <div class="forum-block">
bgneal@106 15 <table class="forum-topic" id="forum-topic">
bgneal@106 16 {% include 'forums/display_post.html' %}
bgneal@106 17 </table>
bgneal@106 18
bgneal@106 19 <a name="forum-reply-form"></a>
bgneal@127 20 {% show_form "Edit Post" form "Update Post" 0 MEDIA_URL %}
bgneal@123 21 </div>
bgneal@106 22 {% endblock %}