Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
269:4e307f9ddd2d | 270:85f81377bb5b |
---|---|
1 {% extends 'side_block.html' %} | 1 {% extends 'side_block.html' %} |
2 {% load core_tags %} | |
2 {% block block_title %}Shoutbox{% endblock %} | 3 {% block block_title %}Shoutbox{% endblock %} |
3 {% block block_content %} | 4 {% block block_content %} |
4 <div id="shoutbox-shout-container"> | 5 <div id="shoutbox-shout-container"> |
5 {% for shout in shouts %} | 6 {% for shout in shouts %} |
6 <p> | 7 <p> |
7 <span class="shoutbox-user">{{ shout.user.username }}:</span> | 8 <span class="shoutbox-user">{{ shout.user.username }}:</span> |
8 <span class="shoutbox-shout">{{ shout.html|safe }}</span> | 9 <span class="shoutbox-shout">{{ shout.html|safe }}</span><br /> |
9 <span class="shoutbox-date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span> | 10 <span class="shoutbox-date">{{ shout.shout_date|elapsed }}</span> |
10 </p> | 11 </p> |
11 {% endfor %} | 12 {% endfor %} |
12 </div> | 13 </div> |
13 <center><a href="{% url shoutbox-history %}">Shout History</a></center> | 14 <center><a href="{% url shoutbox-history %}">Shout History</a></center> |
14 {% if user.is_authenticated %} | 15 {% if user.is_authenticated %} |