annotate gpp/templates/forums/post_edit_button.html @ 311:b1c39788e511

Fix #146; use new class-based generic views as function-based generic views are now deprecated.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:40:14 +0000
parents daa2916f5b34
children 88b2b9cb8c1f
rev   line source
bgneal@310 1 {% load url from future %}
bgneal@105 2 {% if show_button %}
bgneal@310 3 <a href="{% url 'forums-edit_post' id=post.id %}"><img src="{{ MEDIA_URL }}icons/page_edit.png" alt="Edit post" title="Edit post" /></a>
bgneal@105 4 {% endif %}