view 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
line wrap: on
line source
{% extends 'base.html' %}
{% block custom_head %}
<link rel="alternate" type="application/rss+xml" title="SurfGuitar101 News" href="{% url feeds-news %}" />
{% endblock %}
{% block custom_css %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/news.css" />
{% block news_css %}{% endblock %}
{% endblock %}
{% block content %}
<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>

<ul class="app-menu">
<li><a href="{% url news-index_page %}">News Main</a></li>
<li><a href="{% url news-archive_index %}">Archive</a></li>
<li><a href="{% url news-category_index %}">Categories</a></li>
<li><a href="{% url news-tag_index %}">Tags</a></li>
<li><a href="{% url news-submit %}">Submit News</a></li>
</ul>
{% block news_content %}
{% endblock %}
{% endblock %}