Mercurial > public > sg101
annotate gpp/templates/shoutbox/shoutbox.html @ 456:5be072292e2d
Working on #220. Can't test locally, so committing in increments.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 01 Jul 2011 00:43:44 +0000 |
parents | 88b2b9cb8c1f |
children |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'side_block.html' %} |
bgneal@310 | 2 {% load url from future %} |
bgneal@270 | 3 {% load core_tags %} |
gremmie@1 | 4 {% block block_title %}Shoutbox{% endblock %} |
gremmie@1 | 5 {% block block_content %} |
bgneal@12 | 6 <div id="shoutbox-shout-container"> |
bgneal@272 | 7 {% for shout in shouts reversed %} |
gremmie@1 | 8 <p> |
gremmie@1 | 9 <span class="shoutbox-user">{{ shout.user.username }}:</span> |
bgneal@270 | 10 <span class="shoutbox-shout">{{ shout.html|safe }}</span><br /> |
bgneal@270 | 11 <span class="shoutbox-date">{{ shout.shout_date|elapsed }}</span> |
gremmie@1 | 12 </p> |
gremmie@1 | 13 {% endfor %} |
gremmie@1 | 14 </div> |
bgneal@272 | 15 <center> |
bgneal@272 | 16 <button type="button" id="shoutbox-prev" title="Previous">«</button> |
bgneal@310 | 17 <a href="{% url 'shoutbox-history' %}">Shout History</a> |
bgneal@272 | 18 <button type="button" id="shoutbox-next" title="Next">»</button> |
bgneal@272 | 19 </center> |
gremmie@1 | 20 {% if user.is_authenticated %} |
gremmie@1 | 21 <center> |
bgneal@194 | 22 <div> |
gremmie@1 | 23 <input type="text" maxlength="2048" size="13" name="msg" value="" id="shoutbox-smiley-input" /> |
gremmie@1 | 24 <br /> |
bgneal@12 | 25 <input id="shoutbox-submit" type="submit" value="Shout" /> |
bgneal@12 | 26 <input id="shoutbox-smilies" type="button" value="Smilies" /> |
bgneal@194 | 27 </div> |
gremmie@1 | 28 <div id="shoutbox-smiley-frame" style="display:none;"> |
bgneal@312 | 29 <img id="shoutbox-busy-icon" src="{{ STATIC_URL }}icons/ajax_busy.gif" alt="Please wait" /> |
gremmie@1 | 30 </div> |
gremmie@1 | 31 </center> |
gremmie@1 | 32 {% else %} |
gremmie@1 | 33 <p> |
bgneal@310 | 34 Please <a href="{% url 'accounts-login' %}">login</a> or |
bgneal@310 | 35 <a href="{% url 'accounts-register' %}">register</a> to shout. |
gremmie@1 | 36 </p> |
gremmie@1 | 37 {% endif %} |
gremmie@1 | 38 {% endblock %} |