summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJakob Hilden <jhild@umich.edu>2009-02-23 00:46:25 +0000
committerJakob Hilden <jhild@umich.edu>2009-02-23 00:46:25 +0000
commit7d96448ecbf0c7d24bf851db13d1b81bb726024e (patch)
tree57ee354aed50640e9331f9f00f8e9d1d5b305c79 /modules
parentecaf6bda32e9fdb77ff97c93577b1bea6d46a754 (diff)
added additional comment link, if no comments have been made yet.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/views/comments.html.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php
index ce99cbe7..575a7eca 100644
--- a/modules/comment/views/comments.html.php
+++ b/modules/comment/views/comments.html.php
@@ -1,4 +1,10 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
+<? if (!$comments->count()): ?>
+<p>
+ <?= t("No comments yet. Be the first to") ?>
+ <a href="#add_comment_form" class="showCommentForm"><?= t("comment") ?></a>!
+</p>
+<? endif ?>
<ul id="gComments">
<? foreach ($comments as $comment): ?>
<li id="gComment-<?= $comment->id ?>">
@@ -20,7 +26,4 @@
</li>
<? endforeach ?>
</ul>
-<? if (!$comments->count()): ?>
-<?= t("No comments yet. Be the first to comment!") ?>
-<? endif ?>
<a name="add_comment_form"></a>