--- loncom/interface/lonfeedback.pm 2006/12/08 20:09:29 1.232 +++ loncom/interface/lonfeedback.pm 2009/10/12 18:51:43 1.273.4.1 @@ -1,7 +1,7 @@ # The LearningOnline Network # Feedback # -# $Id: lonfeedback.pm,v 1.232 2006/12/08 20:09:29 raeburn Exp $ +# $Id: lonfeedback.pm,v 1.273.4.1 2009/10/12 18:51:43 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -90,8 +90,8 @@ sub list_discussion { } if (not &discussion_visible($status)) { if ($mode ne 'board') { - my $encsymb=&Apache::lonenc::check_encrypt($ressymb); - return &send_message_link($encsymb); + &Apache::lonenc::check_encrypt(\$ressymb); + return '
'.&send_message_link($ressymb); } } if ($group ne '' && $mode eq 'board') { @@ -100,15 +100,17 @@ sub list_discussion { } } - my ($blocked,$blocktext) = &blocking_posts('boards',1); + my ($blocked,$blocktext) = + &Apache::loncommon::blocking_status('boards'); if ($blocked) { + &Apache::lonenc::check_encrypt(\$ressymb); if ($mode ne 'board') { - my $encsymb=&Apache::lonenc::check_encrypt($ressymb); - return $blocktext.'
'.&send_message_link($encsymb); + $blocktext.='
'.&send_message_link($ressymb); } + return $blocktext; } - my @bgcols = ("#cccccc","#eeeeee"); + my @bgcols = ("LC_disc_old_item","LC_disc_new_item"); my $discussiononly=0; if ($mode eq 'board') { $discussiononly=1; } unless ($env{'request.course.id'}) { return ''; } @@ -432,7 +434,8 @@ imscp_v1p1.xsd http://www.imsglobal.org/ } |; - $discussion.='
'; + $discussion.=''. + "\n".'
'; $discussion .= &action_links_bar($colspan,$ressymb,$visible, $newpostsflag,$group, $prevread,$markondisp); @@ -545,7 +548,7 @@ imscp_v1p1.xsd http://www.imsglobal.org/ } $copyresult.=&replicate_attachments($imsitems{$alldiscussion{$post}}{'allattachments'},$tempexport); } else { - $discussion.=''; } @@ -555,8 +558,8 @@ imscp_v1p1.xsd http://www.imsglobal.org/ my $colspan=$maxdepth+1; $discussion .= < -
'. $discussionitems[$alldiscussion{$post}]. '
- +