--- rat/lonpage.pm 2010/07/13 00:16:23 1.94 +++ rat/lonpage.pm 2010/07/30 22:40:53 1.94.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.94 2010/07/13 00:16:23 raeburn Exp $ +# $Id: lonpage.pm,v 1.94.2.1 2010/07/30 22:40:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -553,6 +553,10 @@ sub handler { sub get_buttons { my ($hash,$rid) = @_; + # which icons do we use? + my $extension='png'; + if ($env{'environment.icons'} eq 'classic') { $extension='gif'; } + my $metainfo = ''; my $esrc=&Apache::lonnet::declutter($hash->{'src_'.$rid}); my ($mapid,$resid)=split(/\./,$rid); @@ -569,13 +573,13 @@ sub get_buttons { || !$hash->{'encrypted_'.$rid})) { $metainfo .=''. ''. - ''. + ''. ''; } $metainfo .= ''. - ''. + ''. ''; if (($hash->{'src_'.$rid}=~/\.(problem|exam|quiz|assess|survey|form)$/) && ($hash->{'src_'.$rid} !~ m-^/uploaded/-)) { @@ -585,12 +589,12 @@ sub get_buttons { ''. '&command=submission">'. - ''. + ''. ''. ''. '&command=gradingmenu">'. - ''. + ''. ''; } if (&Apache::lonnet::allowed('opa',$env{'request.course.id'})) { @@ -598,7 +602,7 @@ sub get_buttons { ''. '" >'. - ''. + ''. ''; } }