annotate gpp/templates/forums/post_edit_button.html @ 395:e10fa0d8e7ad
Fixing #192; cache some forum stats and have them be computed outside of the request/response cycle. Update the template tag to just read the cache.
author |
Brian Neal <bgneal@gmail.com> |
date |
Fri, 25 Mar 2011 00:27:10 +0000 |
parents |
88b2b9cb8c1f |
children |
|
rev |
line source |
bgneal@310
|
1 {% load url from future %}
|
bgneal@105
|
2 {% if show_button %}
|
bgneal@312
|
3 <a href="{% url 'forums-edit_post' id=post.id %}"><img src="{{ STATIC_URL }}icons/page_edit.png" alt="Edit post" title="Edit post" /></a>
|
bgneal@105
|
4 {% endif %}
|