From: Christopher Allan Webber Date: Mon, 14 Nov 2011 02:39:42 +0000 (-0600) Subject: Only show "post a comment" link if comments already exist X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2b7aa99d3c221e713a95b664491f35612f9023cc;p=mediagoblin.git Only show "post a comment" link if comments already exist The purpose of the link is to help you jump past comments to the comment box, and so... Even with this new conditional, I'm not entirely sure I like that link ;) --- diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 2441ec1b..1e495b98 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -62,7 +62,7 @@ {%- endtrans %}

- {% if request.user %} + {% if request.user and comments.count() %}

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

{% endif %} {% if comments %}