annotate gpp/templates/forums/post_ip.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 fe900598f81c
children daa2916f5b34
rev   line source
bgneal@216 1 {% extends 'base.html' %}
bgneal@216 2 {% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %}
bgneal@216 3 {% block content %}
bgneal@216 4 <h2>Post IP Address Info: {{ post.user_ip }}</h2>
bgneal@216 5 <p>
bgneal@216 6 This <a href="{{ post.get_absolute_url }}">post</a> was created by
bgneal@216 7 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> from the IP address
bgneal@216 8 <a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>.
bgneal@216 9 </p>
bgneal@216 10 {% if ip_users %}
bgneal@216 11 <p>All users who have posted from {{ post.user_ip }}:</p>
bgneal@216 12 <ul>
bgneal@216 13 {% for user in ip_users %}
bgneal@216 14 <li><a href="{% url bio-view_profile username=user %}">{{ user }}</a>
bgneal@216 15 (<a href="{% url forums-posts_for_user username=user %}">posts</a>)</li>
bgneal@216 16 {% endfor %}
bgneal@216 17 </ul>
bgneal@216 18 {% endif %}
bgneal@216 19 {% endblock %}