From ae5aa7a2f84c37f69b9b441712e813f24565d685 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 11 Jun 2010 19:31:09 +0000 Subject: Added "Show less" on activity stream comments. git-svn-id: http://code.elgg.org/elgg/trunk@6459 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/riverdashboard/views/default/river/item/wrapper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/riverdashboard/views/default/river/item/wrapper.php') diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php index 57b241114..3583a7f5b 100644 --- a/mod/riverdashboard/views/default/river/item/wrapper.php +++ b/mod/riverdashboard/views/default/river/item/wrapper.php @@ -25,7 +25,7 @@ if (get_context() == 'profile' && $object->getSubtype() == 'thewire') { } // get last three comments display -// want the 3 most recent comments (order by time_created desc = 3 2 1) +// want the 3 most recent comments (order by time_created desc = 3 2 1 limit 3) // but will display them with the newest at the bottom (1 2 3) if ($comments = get_annotations($vars['item']->object_guid, "", "", 'generic_comment', "", "", 3, 0, "desc")) { $comments = array_reverse($comments); @@ -76,8 +76,10 @@ if ($comments){ echo "
"; // display appropriate comment link if ($more_comments_count > 0) { - echo "" . + echo "" . sprintf(elgg_echo('riverdashboard:n_more_comments'), $more_comments_count) . ''; + + echo "" . elgg_echo('riverdashboard:show_less') . ''; } echo "
"; foreach ($comments as $comment) { -- cgit v1.2.3