comparison gpp/templates/shoutbox/shoutbox.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 4557974db0e0
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'side_block.html' %} 1 {% extends 'side_block.html' %}
2 {% load url from future %}
2 {% load core_tags %} 3 {% load core_tags %}
3 {% block block_title %}Shoutbox{% endblock %} 4 {% block block_title %}Shoutbox{% endblock %}
4 {% block block_content %} 5 {% block block_content %}
5 <div id="shoutbox-shout-container"> 6 <div id="shoutbox-shout-container">
6 {% for shout in shouts reversed %} 7 {% for shout in shouts reversed %}
11 </p> 12 </p>
12 {% endfor %} 13 {% endfor %}
13 </div> 14 </div>
14 <center> 15 <center>
15 <button type="button" id="shoutbox-prev" title="Previous">&laquo;</button> 16 <button type="button" id="shoutbox-prev" title="Previous">&laquo;</button>
16 <a href="{% url shoutbox-history %}">Shout History</a> 17 <a href="{% url 'shoutbox-history' %}">Shout History</a>
17 <button type="button" id="shoutbox-next" title="Next">&raquo;</button> 18 <button type="button" id="shoutbox-next" title="Next">&raquo;</button>
18 </center> 19 </center>
19 {% if user.is_authenticated %} 20 {% if user.is_authenticated %}
20 <center> 21 <center>
21 <div> 22 <div>
28 <img id="shoutbox-busy-icon" src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Please wait" /> 29 <img id="shoutbox-busy-icon" src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Please wait" />
29 </div> 30 </div>
30 </center> 31 </center>
31 {% else %} 32 {% else %}
32 <p> 33 <p>
33 Please <a href="{% url accounts-login %}">login</a> or 34 Please <a href="{% url 'accounts-login' %}">login</a> or
34 <a href="{% url accounts-register %}">register</a> to shout. 35 <a href="{% url 'accounts-register' %}">register</a> to shout.
35 </p> 36 </p>
36 {% endif %} 37 {% endif %}
37 {% endblock %} 38 {% endblock %}