Mercurial > public > sg101
view gpp/templates/forums/mod_forum.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 | 6a5549c2efb5 |
children | 593fb6dbd449 |
line wrap: on
line source
{% extends 'base.html' %} {% load forum_tags %} {% block title %}Moderate Forum: {{ forum.name }}{% endblock %} {% block custom_js %} <script type="text/javascript" src="{{ MEDIA_URL }}js/forums_mod.js"></script> {% endblock %} {% block content %} <h2>Moderate Forum: {{ forum.name }}</h2> <h3> <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> </h3> <div class="forum-block"> {{ page_nav }} <form action="." method="post">{% csrf_token %} <table class="forum-index-table"> <thead> <tr> <th class="forum-index_title">Topics</th> <th class="forum-index_replies">Replies</th> <th class="forum-index_author">Author</th> <th class="forum-index_last_post">Last Post</th> <th class="forum-index_select">Select<br /><input type="checkbox" id="forums-master-topic" /></th> </tr> </thead> <tbody> {% for topic in page.object_list %} <tr class="{% cycle 'odd' 'even' %}"> <td>{% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" class="forums-topic-icon" />{% endif %} <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> <td class="forum-index_replies">{{ topic.reply_count }}</td> <td class="forum-index_author"><a href="{% url bio-view_profile username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td> <td class="forum-index_last_post"> {% last_post_info topic.last_post %} </td> <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" class="forums-topic_check" /></td> </tr> {% empty %} <tr> <td colspan="5"> <i>No topics available.</i> </td> </tr> {% endfor %} </tbody> </table> {{ page_nav }} <div class="forum-mod-controls"> <input type="submit" value="Toggle Sticky" name="sticky" /> <input type="submit" value="Toggle Lock" name="lock" /> <input type="submit" value="Delete" name="delete" /><br /> <input type="submit" value="Move To:" name="move" /> {{ form }} <input type="hidden" name="page" value="{{ page.number }}" /> </div> </form> </div> {% endblock %}