[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /interface coursecatalog.pm
raeburn
raeburn@source.lon-capa.org
Wed, 22 Dec 2010 04:14:09 -0000
raeburn Wed Dec 22 04:14:09 2010 EDT
Modified files: (Branch: version_2_10_X)
/loncom/interface coursecatalog.pm
Log:
- Backport 1.66.
Index: loncom/interface/coursecatalog.pm
diff -u loncom/interface/coursecatalog.pm:1.58.4.5 loncom/interface/coursecatalog.pm:1.58.4.6
--- loncom/interface/coursecatalog.pm:1.58.4.5 Thu Oct 7 14:47:59 2010
+++ loncom/interface/coursecatalog.pm Wed Dec 22 04:14:09 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler for displaying the course catalog interface
#
-# $Id: coursecatalog.pm,v 1.58.4.5 2010/10/07 14:47:59 raeburn Exp $
+# $Id: coursecatalog.pm,v 1.58.4.6 2010/12/22 04:14:09 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1023,7 +1023,13 @@
if (($info->{'selfenroll_start'} > 0) && ($info->{'selfenroll_start'} > $now)) {
$output .= '<td>'.&mt('Starts: [_1]','<span class="LC_cusr_emph">'.$showstart.'</span>').'<br />'.&mt('Ends: [_1]','<span class="LC_cusr_emph">'.$showend.'</span>').'</td>';
} else {
- $output .= '<td><a href="javascript:ToSelfenroll('."'$course'".')">'.&mt('Enroll in course').'</a></td>';
+ $output .= '<td><a href="javascript:ToSelfenroll('."'$course'".')">'.&mt('Enroll in course').'</a><br />';
+ if ($info->{'selfenroll_end'} == 0) {
+ $output .= &mt('Available permanently');
+ } elsif ($info->{'selfenroll_end'} > $now) {
+ $output .= &mt('Self-enrollment ends: [_1]','<span class="LC_cusr_emph">'.$showend.'</span>');
+ }
+ $output .= '</td>';
}
$selfenroll = 1;
}