Mercurial > public > sg101
view gpp/templates/messages/inbox.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 | 6e7e84707e7d |
children | daa2916f5b34 |
line wrap: on
line source
{% extends 'messages/base.html' %} {% block title %}Messages: Inbox{% endblock %} {% block custom_js %} <script type="text/javascript" src="{{ MEDIA_URL }}js/messages/box.js"></script> {% endblock %} {% block inbox-class %}class="active"{% endblock %} {% block messages_content %} <h3>Inbox</h3> {% if messages %} <ul class="user-messages"> {% for msg in messages %} <li{% if msg.tags %} class="{{ msg.tags }}"{% endif %}>{{ msg }}</li> {% endfor %} </ul> {% endif %} {% if msgs %} <form action="{% url messages-delete_bulk %}" method="post" name="messages_box_form" onsubmit="return messages_confirm_delete();">{% csrf_token %} <table class="messages"> <tr> <th>From</th> <th>Subject</th> <th>Date</th> <th><input type="checkbox" id="master_select" onclick="messages_master_click();" /></th> </tr> {% for msg in msgs %} <tr> <td><a href="{% url bio.views.view_profile msg.sender.username %}"> {{ msg.sender.username }}</a></td> <td> {% if msg.unread %}<strong>{% endif %} {% if msg.replied_to %}<em>{% endif %} <a href="{{ msg.get_absolute_url }}">{{ msg.subject }}</a> {% if msg.replied_to %}</em>{% endif %} {% if msg.unread %}</strong>{% endif %} </td> <td>{{ msg.send_date|date:"M j, Y g:i A" }}</td> <td><input type="checkbox" name="delete_ids" value="{{ msg.id }}" onclick="messages_set_master();" /></td> </tr> {% endfor %} <tr><td colspan="4" align="center"><input type="submit" value="Delete Checked Messages" /></td></tr> </table> <input type="hidden" name="box" value="inbox" /> </form> {% else %} <p><em>Your Inbox is empty.</em></p> {% endif %} {% endblock %}