Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/gpp/templates/shoutbox/shout_detail.html Mon Dec 14 05:07:28 2009 +0000 +++ b/gpp/templates/shoutbox/shout_detail.html Thu Dec 17 04:14:16 2009 +0000 @@ -13,9 +13,8 @@ <a href="{% url shoutbox-view shout.id %}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Permalink" title="Permalink" /></a> <a href="#" class="shout-flag" id="shout-flag-{{ shout.id }}"><img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" title="Flag this shout as offensive" /></a> -{% ifequal user shout.user %} -<a href="#" class="shout-del" id="shout-del-{{ shout.id }}"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete" - title="Delete this shout" /></a> +{% ifequal user.id shout.user.id %} +<a href="#" class="shout-del" id="shout-del-{{ shout.id }}"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete" title="Delete this shout" /></a> {% endifequal %} </td> </tr>