From 2b7aa99d3c221e713a95b664491f35612f9023cc Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber
Date: Sun, 13 Nov 2011 20:39:42 -0600
Subject: [PATCH] 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 ;)
---
mediagoblin/templates/mediagoblin/user_pages/media.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 %}
--
2.25.1