view gpp/templates/forums/post_edit_button.html @ 231:a2d388ed106e

Guard against the request object not having a user attribute in my Who's online middleware. This can happen if a redirect is issued before the authentication middleware gets to run.
author Brian Neal <bgneal@gmail.com>
date Wed, 14 Jul 2010 02:35:39 +0000
parents cb72577785df
children daa2916f5b34
line wrap: on
line source
{% if show_button %}
<a href="{% url forums-edit_post id=post.id %}"><img src="{{ MEDIA_URL }}icons/page_edit.png" alt="Edit post" title="Edit post" /></a>
{% endif %}