comparison gpp/templates/shoutbox/shout_detail.html @ 150:b43e1288ff80

Fix #33; use $.ajax instead of $.post so we can handle errors. Also, for some reason comparing objects in a template doesn't work now. Have to compare id fields.
author Brian Neal <bgneal@gmail.com>
date Thu, 17 Dec 2009 04:14:16 +0000
parents 70926d0d10b7
children e1d1a70d312d
comparison
equal deleted inserted replaced
149:ab7830b067b3 150:b43e1288ff80
11 <br /> 11 <br />
12 <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 />
13 <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>
14 <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"
15 title="Flag this shout as offensive" /></a> 15 title="Flag this shout as offensive" /></a>
16 {% ifequal user shout.user %} 16 {% ifequal user.id shout.user.id %}
17 <a href="#" class="shout-del" id="shout-del-{{ shout.id }}"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete" 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>
18 title="Delete this shout" /></a>
19 {% endifequal %} 18 {% endifequal %}
20 </td> 19 </td>
21 </tr> 20 </tr>