aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-10-27 13:13:19 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-10-27 13:13:19 -0500
commite360a992762ca6ca36aec58a4be6a9b45cf6ca9a (patch)
treef53df05165f65a6ad184e6d58e989185be4026ae
parentecc56c0afbaae29b1167ff943974d32094faf70e (diff)
downloadmediagoblin-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.html4
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 %}