[livejournal] r21695: LJSUP-11513: We need to copy all livejou...
Committer: ybuhvalova
LJSUP-11513: We need to copy all livejournal.sg functional for malaysiaU trunk/cgi-bin/LJ/Widget/RecentComments.pm
Modified: trunk/cgi-bin/LJ/Widget/RecentComments.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/RecentComments.pm 2012-04-11 11:58:01 UTC (rev 21694)
+++ trunk/cgi-bin/LJ/Widget/RecentComments.pm 2012-04-11 12:21:32 UTC (rev 21695)
@@ -54,6 +54,7 @@
# load the entry the comment was posted to
my $entry = $comment->entry;
my $class_name = ($ct == scalar(@comments) - 1) ? "last" : "";
+ $class_name .= (($ct + 1)%2 == 0) ? " odd" : "";
my $subject = $entry->subject_text ? $entry->subject_text : $class->ml('widget.recentcomments.nosubject');
my $body_part = LJ::Text->truncate_to_word_with_ellipsis( 'str'=>$comment->body_text, 'chars'=>150 ) . " ";
@@ -70,7 +71,7 @@
$ret .= $class->ml('widget.recentcomments.commentheading', {'poster' => $poster, 'entry' => "<a href='" . $entry->url . "'>"});
$ret .= $subject;
$ret .= "</a><br />";
- $ret .= $body_part;
+ $ret .= "<span class='comment-body'>" . $body_part . "</span>";
$ret .= "<span class='detail'>(<a href='" . $comment->url . "'>" . $class->ml('widget.recentcomments.link') . "</a>)</span> ";
$ret .= "<span class='detail'>(<a href='" . $comment->reply_url . "'>" . $class->ml('widget.recentcomments.reply') . "</a>)</span> ";
$ret .= "</li>";
