aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-20 02:16:09 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-20 02:16:09 +0000
commitc88d043b487a1b26a0a09bc420d20bd109e2bd3a (patch)
tree99e71f441435cfa7b311092c79115bc1961a1202 /views
parent9850f323a5fe899814201b0354712644f8e80092 (diff)
downloadelgg-c88d043b487a1b26a0a09bc420d20bd109e2bd3a.tar.gz
elgg-c88d043b487a1b26a0a09bc420d20bd109e2bd3a.tar.bz2
Fixes #3457 showing a snippet of a comment in sidebar instead of entire comment
git-svn-id: http://code.elgg.org/elgg/trunk@9107 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/annotation/generic_comment.php4
-rw-r--r--views/default/page/elements/comments_block.php1
2 files changed, 4 insertions, 1 deletions
diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php
index 4a3407e1a..69520d102 100644
--- a/views/default/annotation/generic_comment.php
+++ b/views/default/annotation/generic_comment.php
@@ -63,9 +63,11 @@ HTML;
$on = elgg_echo('on');
+ $excerpt = elgg_get_excerpt($comment->value, 80);
+
$body = <<<HTML
<span class="elgg-subtext">
- $commenter_link $on $entity_link ($friendlytime)
+ $commenter_link $on $entity_link ($friendlytime): $excerpt
</span>
HTML;
diff --git a/views/default/page/elements/comments_block.php b/views/default/page/elements/comments_block.php
index 751aa4312..d0f8ab809 100644
--- a/views/default/page/elements/comments_block.php
+++ b/views/default/page/elements/comments_block.php
@@ -36,6 +36,7 @@ if ($comments) {
'items' => $comments,
'pagination' => false,
'list_class' => 'elgg-latest-comments',
+ 'full_view' => false,
));
} else {
$body = '<p>' . elgg_echo('generic_comment:none') . '</p>';