view gpp/templates/shoutbox/shoutbox.html @ 197:2baadae33f2e

Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author Brian Neal <bgneal@gmail.com>
date Sat, 10 Apr 2010 04:32:24 +0000
parents 6a5549c2efb5
children 7ddd60164245
line wrap: on
line source
{% extends 'side_block.html' %}
{% block block_title %}Shoutbox{% endblock %}
{% block block_content %}
<div id="shoutbox-shout-container">
   {% for shout in shouts %}
      <p>
      <span class="shoutbox-user">{{ shout.user.username }}:</span>
      <span class="shoutbox-shout">{{ shout.html|safe }}</span>
      <span class="shoutbox-date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span>
      </p>
   {% endfor %}
</div>
<center><a href="{% url shoutbox-history page=1 %}">Shout History</a></center>
{% if user.is_authenticated %}
<center>
<div>
   <input type="text" maxlength="2048" size="13" name="msg" value="" id="shoutbox-smiley-input" />
   <br />
   <input id="shoutbox-submit" type="submit" value="Shout" />
   <input id="shoutbox-smilies" type="button" value="Smilies" />
</div>
<div id="shoutbox-smiley-frame" style="display:none;">
<img id="shoutbox-busy-icon" src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Please wait" />
</div>
</center>
{% else %}
<p>
Please <a href="{% url accounts-login %}">login</a> or
<a href="{% url accounts-register %}">register</a> to shout.
</p>
{% endif %}
{% endblock %}