[LON-CAPA-cvs] cvs: loncom /interface courseprefs.pm
raeburn
raeburn at source.lon-capa.org
Mon Dec 31 09:43:10 EST 2012
raeburn Mon Dec 31 14:43:10 2012 EDT
Modified files:
/loncom/interface courseprefs.pm
Log:
- Edit link for /adm/classlists (student-viewable roster) in Course Editor
and in inline Functions menu.
- Only include help link, if a help item is specified.
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.51 loncom/interface/courseprefs.pm:1.52
--- loncom/interface/courseprefs.pm:1.51 Fri Dec 21 18:51:49 2012
+++ loncom/interface/courseprefs.pm Mon Dec 31 14:43:09 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set configuration settings for a course
#
-# $Id: courseprefs.pm,v 1.51 2012/12/21 18:51:49 bisitz Exp $
+# $Id: courseprefs.pm,v 1.52 2012/12/31 14:43:09 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -549,9 +549,13 @@
'<table class="LC_nested_outer">
<tr>
<th align="left" valign="middle"><span class="LC_nobreak" style="font-size: larger;" >'.
- &mt($item->{text}).' '.
- &Apache::loncommon::help_open_topic($item->{'help'}).'</span></th>'."\n".
- '</tr>';
+ &mt($item->{text});
+ if ($item->{'help'}) {
+ $output .= ' '
+ &Apache::loncommon::help_open_topic($item->{'help'});
+ }
+ $output .= '</span></th>'."\n".
+ '</tr>';
if (($action eq 'feedback') || ($action eq 'classlists')) {
$output .= '
<tr>
@@ -624,7 +628,7 @@
$output .= &print_feedback('bottom',$cdom,$settings,$ordered,$itemtext,\$rowtotal);
} elsif ($action eq 'discussion') {
$output .= &print_discussion($cdom,$settings,$ordered,$itemtext,\$rowtotal);
- } elsif ($action eq 'classlists') {
+ } elsif (($action eq 'classlists') || ($action eq 'viewableroster')) {
$output .= &print_classlists('bottom',$cdom,$settings,$itemtext,\$rowtotal,$crstype);
} elsif ($action eq 'appearance') {
$output .= &print_appearance($cdom,$settings,$ordered,$itemtext,\$rowtotal,$crstype);
More information about the LON-CAPA-cvs
mailing list