annotate gpp/templates/news/base.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 1246a4f1ab4f
children daa2916f5b34
rev   line source
gremmie@1 1 {% extends 'base.html' %}
gremmie@1 2 {% block custom_head %}
bgneal@176 3 <link rel="alternate" type="application/rss+xml" title="SurfGuitar101 News" href="{% url feeds-news %}" />
gremmie@1 4 {% endblock %}
gremmie@1 5 {% block custom_css %}
gremmie@1 6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/news.css" />
gremmie@1 7 {% block news_css %}{% endblock %}
gremmie@1 8 {% endblock %}
gremmie@1 9 {% block content %}
bgneal@176 10 <h2>SurfGuitar101 News &amp; Articles <a href="{% url feeds-news %}"><img src="{{ MEDIA_URL }}icons/feed.png" alt="News Feed" title="News Feed" /></a></h2>
bgneal@240 11
gremmie@1 12 <ul class="app-menu">
bgneal@240 13 <li><a href="{% url news-index_page %}">News Main</a></li>
gremmie@1 14 <li><a href="{% url news-archive_index %}">Archive</a></li>
bgneal@240 15 <li><a href="{% url news-category_index %}">Categories</a></li>
gremmie@1 16 <li><a href="{% url news-tag_index %}">Tags</a></li>
bgneal@240 17 <li><a href="{% url news-submit %}">Submit News</a></li>
gremmie@1 18 </ul>
gremmie@1 19 {% block news_content %}
gremmie@1 20 {% endblock %}
gremmie@1 21 {% endblock %}