annotate gpp/templates/forums/post_list.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 7071b196ddd5
children 21d2ca3b4bf7
rev   line source
bgneal@169 1 {% extends 'base.html' %}
bgneal@169 2 {% load forum_tags %}
bgneal@169 3 {% block title %}Forums: {{ title }}{% endblock %}
bgneal@169 4 {% block content %}
bgneal@169 5 <h2>Forums: {{ title }}</h2>
bgneal@169 6 <h3>
bgneal@169 7 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo; {{ title }}
bgneal@169 8 </h3>
bgneal@169 9 <div class="forum-block">
bgneal@169 10 {{ page_nav }}
bgneal@169 11 {% if page.object_list %}
bgneal@169 12 <dl id="forums-post-list">
bgneal@169 13 {% for post in page.object_list %}
bgneal@169 14 <dt>
bgneal@169 15 <a href="{{ post.topic.forum.get_absolute_url }}" title="Visit Forum">{{ post.topic.forum.name }}</a> &raquo;
bgneal@169 16 <a href="{{ post.topic.get_absolute_url }}" title="Visit Topic">{{ post.topic.name }}</a> &raquo;
bgneal@169 17 <a href="{{ post.get_absolute_url }}" title="View Post in Context">
bgneal@169 18 {% forum_date post.creation_date user %}</a>
bgneal@169 19 </dt>
bgneal@169 20 <dd class="{% cycle 'odd' 'even' %}">
bgneal@169 21 {{ post.html|safe }}
bgneal@169 22 </dd>
bgneal@169 23 {% endfor %}
bgneal@169 24 </dl>
bgneal@169 25 {% else %}
bgneal@169 26 <h4>No posts found.</h4>
bgneal@169 27 {% endif %}
bgneal@169 28 {{ page_nav }}
bgneal@169 29 </div>
bgneal@169 30 {% endblock %}