gremmie@1: {% extends 'side_block.html' %} bgneal@310: {% load url from future %} bgneal@270: {% load core_tags %} gremmie@1: {% block block_title %}Shoutbox{% endblock %} gremmie@1: {% block block_content %} bgneal@12: <div id="shoutbox-shout-container"> bgneal@272: {% for shout in shouts reversed %} gremmie@1: <p> gremmie@1: <span class="shoutbox-user">{{ shout.user.username }}:</span> bgneal@270: <span class="shoutbox-shout">{{ shout.html|safe }}</span><br /> bgneal@270: <span class="shoutbox-date">{{ shout.shout_date|elapsed }}</span> gremmie@1: </p> gremmie@1: {% endfor %} gremmie@1: </div> bgneal@272: <center> bgneal@272: <button type="button" id="shoutbox-prev" title="Previous">«</button> bgneal@310: <a href="{% url 'shoutbox-history' %}">Shout History</a> bgneal@272: <button type="button" id="shoutbox-next" title="Next">»</button> bgneal@272: </center> gremmie@1: {% if user.is_authenticated %} gremmie@1: <center> bgneal@194: <div> 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" /> bgneal@194: </div> gremmie@1: <div id="shoutbox-smiley-frame" style="display:none;"> bgneal@312: <img id="shoutbox-busy-icon" src="{{ STATIC_URL }}icons/ajax_busy.gif" alt="Please wait" /> gremmie@1: </div> gremmie@1: </center> gremmie@1: {% else %} gremmie@1: <p> bgneal@310: Please <a href="{% url 'accounts-login' %}">login</a> or bgneal@310: <a href="{% url 'accounts-register' %}">register</a> to shout. gremmie@1: </p> gremmie@1: {% endif %} gremmie@1: {% endblock %}