annotate gpp/templates/weblinks/link.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 7e8d2dda99e3
children daa2916f5b34
rev   line source
gremmie@1 1 <dt>
bgneal@209 2 <h4><a href="{{ link.url }}">{{ link.title }}</a></h4>
gremmie@1 3 </dt>
gremmie@1 4 <dd>
gremmie@1 5 <p>{{ link.description }}</p>
bgneal@194 6 <form action="{% url weblinks-visit link.id %}" method="post">{% csrf_token %}
gremmie@1 7 <table class="link-stats">
gremmie@1 8 <tr>
bgneal@209 9 <th>Added by:</th><td><a href="{% url bio-view_profile link.user.username %}">{{ link.user.username }}</a></td>
bgneal@242 10 <th>Category:</th><td><a href="{% url weblinks-view_links slug=link.category.slug sort='date' %}">{{ link.category.title }}</a></td>
bgneal@209 11 </tr>
bgneal@209 12 <tr>
bgneal@165 13 <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td>
gremmie@1 14 <th>Hits:</th><td>{{ link.hits }}</td>
bgneal@3 15 <td>
bgneal@165 16 <a href="#" class="weblinks-broken" id="link-{{ link.id }}"><img src="{{ MEDIA_URL }}icons/link_break.png" alt="Broken Link" title="Report this link as broken" /></a>
bgneal@3 17 </td>
gremmie@1 18 </tr>
bgneal@165 19 <tr><td><input type="submit" value="Visit Site" /></td></tr>
gremmie@1 20 </table>
bgneal@165 21 </form>
gremmie@1 22 <br />
gremmie@1 23 </dd>