aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/views/default/river/item
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-11 19:31:09 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-11 19:31:09 +0000
commitae5aa7a2f84c37f69b9b441712e813f24565d685 (patch)
treef784ba069a8a3456b867fb624395fc98719a11f3 /mod/riverdashboard/views/default/river/item
parent7601f3ab8356d3c0e11b58ad37c4ac738f21686d (diff)
downloadelgg-ae5aa7a2f84c37f69b9b441712e813f24565d685.tar.gz
elgg-ae5aa7a2f84c37f69b9b441712e813f24565d685.tar.bz2
Added "Show less" on activity stream comments.
git-svn-id: http://code.elgg.org/elgg/trunk@6459 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/views/default/river/item')
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper.php6
1 files changed, 4 insertions, 2 deletions
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 "<div class=\"comments_container\">";
// display appropriate comment link
if ($more_comments_count > 0) {
- echo "<a class=\"river_show_more_comments link\">" .
+ echo "<a class=\"river_more_comments show_more_button link\">" .
sprintf(elgg_echo('riverdashboard:n_more_comments'), $more_comments_count) . '</a>';
+
+ echo "<a style=\"display: none\" class=\"river_more_comments show_less_button link\">" . elgg_echo('riverdashboard:show_less') . '</a>';
}
echo "<div class=\"comments_list\">";
foreach ($comments as $comment) {