gremmie@1: {% extends 'side_block.html' %}
gremmie@1: {% load smiley_tags %}
gremmie@1: {% block block_title %}Shoutbox{% endblock %}
gremmie@1: {% block block_content %}
bgneal@12: <div id="shoutbox-shout-container">
gremmie@1:    {% for shout in shouts %}
gremmie@1:       <p>
gremmie@1:       <span class="shoutbox-user">{{ shout.user.username }}:</span>
gremmie@1:       <span class="shoutbox-shout">{{ shout.shout|smilify|urlizetrunc:15 }}</span>
gremmie@1:       <span class="shoutbox-date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span>
gremmie@1:       </p>
gremmie@1:    {% endfor %}
gremmie@1: </div>
bgneal@13: <center><a href="{% url shoutbox-history page=1 %}">Shout History</a></center>
gremmie@1: {% if user.is_authenticated %}
gremmie@1: <center>
gremmie@1: <form action="{% url shoutbox-shout %}" method="post">
gremmie@1:    <input type="text" maxlength="2048" size="13" name="msg" value="" id="shoutbox-smiley-input" />
gremmie@1:    <br />
bgneal@12:    <input id="shoutbox-submit" type="submit" value="Shout" />
bgneal@12:    <input id="shoutbox-smilies" type="button" value="Smilies" />
gremmie@1: </form>
gremmie@1: <div id="shoutbox-smiley-frame" style="display:none;">
bgneal@12: <img id="shoutbox-busy-icon" src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Please wait" />
gremmie@1: </div>
gremmie@1: </center>
gremmie@1: {% else %}
gremmie@1: <p>
gremmie@1: Please <a href="{% url accounts-login %}">login</a> or
gremmie@1: <a href="{% url accounts-register %}">register</a> to shout.
gremmie@1: </p>
gremmie@1: {% endif %}
gremmie@1: {% endblock %}