--- loncom/interface/lonfeedback.pm 2009/05/06 13:37:56 1.271 +++ loncom/interface/lonfeedback.pm 2010/01/25 03:30:23 1.273.4.5 @@ -1,7 +1,7 @@ # The LearningOnline Network # Feedback # -# $Id: lonfeedback.pm,v 1.271 2009/05/06 13:37:56 bisitz Exp $ +# $Id: lonfeedback.pm,v 1.273.4.5 2010/01/25 03:30:23 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -169,6 +169,8 @@ sub list_discussion { my $cdom = $env{'course.'.$cid.'.domain'}; my $cnum = $env{'course.'.$cid.'.num'}; + my $crstype = &Apache::loncommon::course_type(); + # Get information about students and non-students in course for filtering display of posts my %roleshash = (); @@ -565,7 +567,7 @@ imscp_v1p1.xsd http://www.imsglobal.org/
- $lt{'cuse'}: | + $lt{'cuse'}:END @@ -587,7 +589,7 @@ END | - $lt{'chgt'}? + $lt{'chgt'}? |
'; my $escsymb=&escape($ressymb); if ($visible>2) { - $discussion .= ' | '. - ''.(' ' x2); - } else { - $discussion .= ' | '.&mt('Mark NEW posts no longer new').''; + $discussion .= '">'.&mt('Mark NEW posts no longer new').' | ';
} else {
$discussion .= ''; } @@ -826,7 +826,7 @@ sub action_links_bar { sub postingform_display { my ($mode,$ressymb,$now,$subject,$comment,$outputtarget,$attachnum, - $currnewattach,$currdelold,$group) = @_; + $currnewattach,$currdelold,$group,$crstype) = @_; my $newattachmsg; my %lt = &Apache::lonlocal::texthash( 'note' => 'Note: in anonymous discussion, your name is visible only to course faculty', @@ -835,6 +835,9 @@ sub postingform_display { 'poan' => 'Post Anonymous Discussion', 'newa' => 'New attachments', ); + if ($crstype eq 'Community') { + $lt{'note'} = &mt('Note: in anonymous discussion, your name is visible only to community facilitators'); + } my $postingform = (< | '. ''.$subject.' '. - $sender.' '.$vgrlink.' ('. + $sender.' '.$vgrlink.' ('. &Apache::lonlocal::locallocaltime($posttime).') | '; if ($$dischash{$toggkey}) { $$discussionitems[$idx].=' '.
@@ -1479,7 +1484,6 @@ sub mail_screen {
}
my %lt = &Apache::lonlocal::texthash(
- 'plch' => 'Please check at least one of the following feedback types:',
'myqu' => 'My question/comment/feedback:',
'title' => 'Title',
'reta' => 'Retained attachments',
@@ -1690,7 +1694,6 @@ END
END
}
$r->print(< $lt{'myqu'} @@ -1928,7 +1931,7 @@ END &Apache::loncommon::end_page(); $r->print(< |