diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-10-27 13:13:19 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-10-27 13:13:19 -0500 |
commit | e360a992762ca6ca36aec58a4be6a9b45cf6ca9a (patch) | |
tree | f53df05165f65a6ad184e6d58e989185be4026ae | |
parent | ecc56c0afbaae29b1167ff943974d32094faf70e (diff) | |
download | mediagoblin-e360a992762ca6ca36aec58a4be6a9b45cf6ca9a.tar.lz mediagoblin-e360a992762ca6ca36aec58a4be6a9b45cf6ca9a.tar.xz mediagoblin-e360a992762ca6ca36aec58a4be6a9b45cf6ca9a.zip |
Only show the "post a comment" link if there's a logged in user
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index b8d0b9ff..c4fe3a71 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -65,7 +65,9 @@ <br /> <h3>{% trans %}Comments{% endtrans %}</h3> - <p><a href="#comment_form">{% trans %}Post a comment{% endtrans %}</a></p> + {% if request.user %} + <p><a href="#comment_form">{% trans %}Post a comment{% endtrans %}</a></p> + {% endif %} {% if comments %} {% for comment in comments %} |