--- rat/lonpage.pm 2007/05/22 00:26:31 1.77 +++ rat/lonpage.pm 2007/05/23 14:57:51 1.78 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.77 2007/05/22 00:26:31 albertel Exp $ +# $Id: lonpage.pm,v 1.78 2007/05/23 14:57:51 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -411,6 +411,10 @@ sub handler { } else { $r->print(''); } +# which icons do we use? + my $extension='png'; + if ($env{'environment.icons'} eq 'classic') { $extension='gif'; } +# generate rows for ($i=0;$i<=$#rows;$i++) { if ($rows[$i]) { unless ($target eq 'tex') { @@ -431,13 +435,13 @@ sub handler { unless ($hash{'src_'.$rid} =~ m-^/uploaded/-) { $metainfo =''. ''. - ''. + ''. ''; } $metainfo .= ''. - ''. + ''. ''; if ( ($hash{'src_'.$rid}=~/\.(problem|exam|quiz|assess|survey|form)$/) && @@ -452,17 +456,17 @@ sub handler { ''. '&command=submission">'. - ''. + ''. ''. ''. '&command=gradingmenu">'. - ''. + ''. ''. ''. '" >'. - ''. + ''. ''; } $metainfo.='

';