? includes/._theme.inc
? modules/comment/._comment.module
? modules/comment/._comment.test
? modules/node/._node.module
? modules/simpletest/tests/._common.test
? modules/simpletest/tests/._common_test.module
? sites/all/modules/contrib
? sites/all/modules/custom
? sites/default/files
? sites/default/settings.php
? themes/bartik/templates/._node.tpl.php
? themes/garland/._comment.tpl.php
? themes/garland/._node.tpl.php
? themes/garland/._page.tpl.php
? themes/garland/._template.php
Index: themes/garland/node.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/garland/node.tpl.php,v
retrieving revision 1.23
diff -u -r1.23 node.tpl.php
--- themes/garland/node.tpl.php	8 Apr 2010 18:26:42 -0000	1.23
+++ themes/garland/node.tpl.php	22 Aug 2010 11:47:04 -0000
@@ -17,6 +17,10 @@
 
   <div class="content clearfix"<?php print $content_attributes; ?>>
     <?php
+      // if there's a comment-form, but no comments, hide the 'add-comment' link.
+      if (empty($content['comments']['comments']) && !empty($content['comments']['comment_form'])) {
+       unset($content['links']['comment']['#links']['comment-add']); 
+      }
       // We hide the comments and links now so that we can render them later.
       hide($content['comments']);
       hide($content['links']);
