[LON-CAPA-cvs] cvs: loncom /interface lonfeedback.pm
raeburn
raeburn@source.lon-capa.org
Sat, 14 Aug 2010 15:24:46 -0000
raeburn Sat Aug 14 15:24:46 2010 EDT
Modified files:
/loncom/interface lonfeedback.pm
Log:
- Consistent format for "This discussion is closed".
- If user has advanced role, include not to indicate that discussion is closed for
non-advanced roles.
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.297 loncom/interface/lonfeedback.pm:1.298
--- loncom/interface/lonfeedback.pm:1.297 Sat Aug 7 19:23:50 2010
+++ loncom/interface/lonfeedback.pm Sat Aug 14 15:24:46 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.297 2010/08/07 19:23:50 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.298 2010/08/14 15:24:46 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -745,11 +745,18 @@
$env{'request.course.id'}.
($env{'request.course.sec'}?'/'.$env{'request.course.sec'}:''))) {
if ($outputtarget ne 'tex') {
- $discussion.= &send_feedback_link($ressymb,$target);
+ $discussion.= &send_feedback_link($ressymb,$target);
+ if ($env{'request.role.adv'}) {
+ my $close = &Apache::lonnet::EXT('resource.0.discussend',$ressymb);
+ if (defined($close) && $close ne '' && $close < time) {
+ $discussion .= ' '.&mt('(Closed for [_1] roles)',
+ &Apache::lonnet::plaintext('st',$crstype));
+ }
+ }
}
} else {
if ($outputtarget ne 'tex') {
- $discussion.= &mt('This discussion is closed.');
+ $discussion.= '<span class="LC_feedback_link">'.&mt('This discussion is closed.').'</span>';
}
}
if ($outputtarget ne 'tex') {