--- loncom/interface/lonfeedback.pm 2004/05/25 22:16:05 1.84 +++ loncom/interface/lonfeedback.pm 2004/06/03 20:06:15 1.89 @@ -1,7 +1,7 @@ # The LearningOnline Network # Feedback # -# $Id: lonfeedback.pm,v 1.84 2004/05/25 22:16:05 raeburn Exp $ +# $Id: lonfeedback.pm,v 1.89 2004/06/03 20:06:15 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -34,15 +34,20 @@ use Apache::Constants qw(:common); use Apache::lonmsg(); use Apache::loncommon(); use Apache::lontexconvert(); -use Apache::lonlocal; +use Apache::lonlocal; # must not have () +use Apache::lonhtmlcommon(); sub list_discussion { my ($mode,$status,$symb)=@_; -# &Apache::lonnet::logthis("status is $status"); + if (!($status eq 'CAN_ANSWER' || $status eq 'CANNOT_ANSWER' || $status eq 'OPEN')) { return ''; } + my $close=&Apache::lonnet::EXT('resource.0.discussend'); + if (defined($close) && $close ne '' && $close < time) { + return '' + } my @bgcols = ("#cccccc","#eeeeee"); my $discussiononly=0; @@ -411,7 +416,7 @@ sub list_discussion { Note: in anonymous discussion, your name is visible only to course faculty
Title: 

- +

Attachment (128 KB max size):

@@ -457,13 +462,15 @@ sub mail_screen { $prevtag = ''; } } - my $latexHelp = Apache::loncommon::helpLatexCheatsheet(); + my $latexHelp=&Apache::loncommon::helpLatexCheatsheet(); + my $htmlheader=&Apache::lonhtmlcommon::htmlareaheaders(); my $send=&mt('Send'); $r->print(< The LearningOnline Network with CAPA +$htmlheader