comparison gpp/templates/shoutbox/shout_detail.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 e1d1a70d312d
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% load url from future %}
1 {% load avatar_tags %} 2 {% load avatar_tags %}
2 <tr> 3 <tr>
3 <th> 4 <th>
4 <a href="{% url bio-view_profile username=shout.user.username %}">{% avatar shout.user %}</a> 5 <a href="{% url 'bio-view_profile' username=shout.user.username %}">{% avatar shout.user %}</a>
5 <a href="{% url bio-view_profile username=shout.user.username %}">{{ shout.user.username }}</a> 6 <a href="{% url 'bio-view_profile' username=shout.user.username %}">{{ shout.user.username }}</a>
6 </th> 7 </th>
7 <td> 8 <td>
8 <div {% ifequal user.id shout.user.id %}class="edit" id="shout-{{ shout.id }}"{% endifequal %}>{{ shout.html|safe }}</div> 9 <div {% ifequal user.id shout.user.id %}class="edit" id="shout-{{ shout.id }}"{% endifequal %}>{{ shout.html|safe }}</div>
9 </div> 10 </div>
10 <br /> 11 <br />
11 <span class="date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span><br /> 12 <span class="date">{{ shout.shout_date|date:"D M d Y H:i:s" }}</span><br />
12 <a href="{% url shoutbox-view shout.id %}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a> 13 <a href="{% url 'shoutbox-view' shout.id %}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a>
13 <a href="#" class="shout-flag" id="shout-flag-{{ shout.id }}"><img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" 14 <a href="#" class="shout-flag" id="shout-flag-{{ shout.id }}"><img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag"
14 title="Flag this shout as offensive" /></a> 15 title="Flag this shout as offensive" /></a>
15 {% ifequal user.id shout.user.id %} 16 {% ifequal user.id shout.user.id %}
16 <a href="#" class="shout-del" id="shout-del-{{ shout.id }}"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete" title="Delete this shout" /></a> 17 <a href="#" class="shout-del" id="shout-del-{{ shout.id }}"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete" title="Delete this shout" /></a>
17 {% endifequal %} 18 {% endifequal %}