Mercurial > public > sg101
annotate gpp/templates/shoutbox/shoutbox.html @ 277:d424b8bae71d
Fixing #128 and #129. Add elsewhere weblinks to search content. Add support for haystack's get_update_field() method.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 02 Oct 2010 23:24:39 +0000 |
parents | 4557974db0e0 |
children | daa2916f5b34 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'side_block.html' %} |
bgneal@270 | 2 {% load core_tags %} |
gremmie@1 | 3 {% block block_title %}Shoutbox{% endblock %} |
gremmie@1 | 4 {% block block_content %} |
bgneal@12 | 5 <div id="shoutbox-shout-container"> |
bgneal@272 | 6 {% for shout in shouts reversed %} |
gremmie@1 | 7 <p> |
gremmie@1 | 8 <span class="shoutbox-user">{{ shout.user.username }}:</span> |
bgneal@270 | 9 <span class="shoutbox-shout">{{ shout.html|safe }}</span><br /> |
bgneal@270 | 10 <span class="shoutbox-date">{{ shout.shout_date|elapsed }}</span> |
gremmie@1 | 11 </p> |
gremmie@1 | 12 {% endfor %} |
gremmie@1 | 13 </div> |
bgneal@272 | 14 <center> |
bgneal@272 | 15 <button type="button" id="shoutbox-prev" title="Previous">«</button> |
bgneal@272 | 16 <a href="{% url shoutbox-history %}">Shout History</a> |
bgneal@272 | 17 <button type="button" id="shoutbox-next" title="Next">»</button> |
bgneal@272 | 18 </center> |
gremmie@1 | 19 {% if user.is_authenticated %} |
gremmie@1 | 20 <center> |
bgneal@194 | 21 <div> |
gremmie@1 | 22 <input type="text" maxlength="2048" size="13" name="msg" value="" id="shoutbox-smiley-input" /> |
gremmie@1 | 23 <br /> |
bgneal@12 | 24 <input id="shoutbox-submit" type="submit" value="Shout" /> |
bgneal@12 | 25 <input id="shoutbox-smilies" type="button" value="Smilies" /> |
bgneal@194 | 26 </div> |
gremmie@1 | 27 <div id="shoutbox-smiley-frame" style="display:none;"> |
bgneal@12 | 28 <img id="shoutbox-busy-icon" src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Please wait" /> |
gremmie@1 | 29 </div> |
gremmie@1 | 30 </center> |
gremmie@1 | 31 {% else %} |
gremmie@1 | 32 <p> |
gremmie@1 | 33 Please <a href="{% url accounts-login %}">login</a> or |
gremmie@1 | 34 <a href="{% url accounts-register %}">register</a> to shout. |
gremmie@1 | 35 </p> |
gremmie@1 | 36 {% endif %} |
gremmie@1 | 37 {% endblock %} |