From e360a992762ca6ca36aec58a4be6a9b45cf6ca9a Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 27 Oct 2011 13:13:19 -0500 Subject: [PATCH] Only show the "post a comment" link if there's a logged in user --- mediagoblin/templates/mediagoblin/user_pages/media.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@

{% trans %}Comments{% endtrans %}

-

{% trans %}Post a comment{% endtrans %}

+ {% if request.user %} +

{% trans %}Post a comment{% endtrans %}

+ {% endif %} {% if comments %} {% for comment in comments %}