Mercurial > public > sg101
diff gpp/templates/shoutbox/shoutbox.html @ 270:85f81377bb5b
Fix #126. Incorporate the repoze timeago function as a new 'elapsed' template filter. This should save space in the shoutbox when displaying dates. Also used in the new posts forum template tag.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 26 Sep 2010 17:27:08 +0000 |
parents | 7ddd60164245 |
children | 4557974db0e0 |
line wrap: on
line diff
--- a/gpp/templates/shoutbox/shoutbox.html Sun Sep 26 04:32:17 2010 +0000 +++ b/gpp/templates/shoutbox/shoutbox.html Sun Sep 26 17:27:08 2010 +0000 @@ -1,12 +1,13 @@ {% extends 'side_block.html' %} +{% load core_tags %} {% 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> + <span class="shoutbox-shout">{{ shout.html|safe }}</span><br /> + <span class="shoutbox-date">{{ shout.shout_date|elapsed }}</span> </p> {% endfor %} </div>