annotate gpp/templates/shoutbox/shoutbox.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 7ddd60164245
children 85f81377bb5b
rev   line source
gremmie@1 1 {% extends 'side_block.html' %}
gremmie@1 2 {% block block_title %}Shoutbox{% endblock %}
gremmie@1 3 {% block block_content %}
bgneal@12 4 <div id="shoutbox-shout-container">
gremmie@1 5 {% for shout in shouts %}
gremmie@1 6 <p>
gremmie@1 7 <span class="shoutbox-user">{{ shout.user.username }}:</span>
bgneal@151 8 <span class="shoutbox-shout">{{ shout.html|safe }}</span>
gremmie@1 9 <span class="shoutbox-date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span>
gremmie@1 10 </p>
gremmie@1 11 {% endfor %}
gremmie@1 12 </div>
bgneal@243 13 <center><a href="{% url shoutbox-history %}">Shout History</a></center>
gremmie@1 14 {% if user.is_authenticated %}
gremmie@1 15 <center>
bgneal@194 16 <div>
gremmie@1 17 <input type="text" maxlength="2048" size="13" name="msg" value="" id="shoutbox-smiley-input" />
gremmie@1 18 <br />
bgneal@12 19 <input id="shoutbox-submit" type="submit" value="Shout" />
bgneal@12 20 <input id="shoutbox-smilies" type="button" value="Smilies" />
bgneal@194 21 </div>
gremmie@1 22 <div id="shoutbox-smiley-frame" style="display:none;">
bgneal@12 23 <img id="shoutbox-busy-icon" src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Please wait" />
gremmie@1 24 </div>
gremmie@1 25 </center>
gremmie@1 26 {% else %}
gremmie@1 27 <p>
gremmie@1 28 Please <a href="{% url accounts-login %}">login</a> or
gremmie@1 29 <a href="{% url accounts-register %}">register</a> to shout.
gremmie@1 30 </p>
gremmie@1 31 {% endif %}
gremmie@1 32 {% endblock %}