aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-11-13 20:39:42 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-11-13 20:39:42 -0600
commit2b7aa99d3c221e713a95b664491f35612f9023cc (patch)
treefc52aca0fc3bb8fd26ac446ff538ccb803d2cdf4
parentee91c2b88d1a42b9d15d34d2c081cd8394649041 (diff)
downloadmediagoblin-2b7aa99d3c221e713a95b664491f35612f9023cc.tar.lz
mediagoblin-2b7aa99d3c221e713a95b664491f35612f9023cc.tar.xz
mediagoblin-2b7aa99d3c221e713a95b664491f35612f9023cc.zip
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 ;)
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media.html2
1 files changed, 1 insertions, 1 deletions
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 %}
</p>
<h3></h3>
- {% if request.user %}
+ {% if request.user and comments.count() %}
<p><a href="#comment_form">{% trans %}Post a comment{% endtrans %}</a></p>
{% endif %}
{% if comments %}