diff gpp/templates/shoutbox/shoutbox.html @ 272:4557974db0e0

For #114, committing a new shoutbox based on the jquery cycle plugin for user feedback.
author Brian Neal <bgneal@gmail.com>
date Sun, 26 Sep 2010 19:08:31 +0000
parents 85f81377bb5b
children daa2916f5b34
line wrap: on
line diff
--- a/gpp/templates/shoutbox/shoutbox.html	Sun Sep 26 17:42:00 2010 +0000
+++ b/gpp/templates/shoutbox/shoutbox.html	Sun Sep 26 19:08:31 2010 +0000
@@ -3,7 +3,7 @@
 {% block block_title %}Shoutbox{% endblock %}
 {% block block_content %}
 <div id="shoutbox-shout-container">
-   {% for shout in shouts %}
+   {% for shout in shouts reversed %}
       <p>
       <span class="shoutbox-user">{{ shout.user.username }}:</span>
       <span class="shoutbox-shout">{{ shout.html|safe }}</span><br />
@@ -11,7 +11,11 @@
       </p>
    {% endfor %}
 </div>
-<center><a href="{% url shoutbox-history %}">Shout History</a></center>
+<center>
+   <button type="button" id="shoutbox-prev" title="Previous">&laquo;</button>
+   <a href="{% url shoutbox-history %}">Shout History</a>
+   <button type="button" id="shoutbox-next" title="Next">&raquo;</button>
+</center>
 {% if user.is_authenticated %}
 <center>
 <div>