--- loncom/interface/lonwhatsnew.pm 2006/01/06 21:52:19 1.44 +++ loncom/interface/lonwhatsnew.pm 2006/01/09 22:55:47 1.48 @@ -1,5 +1,5 @@ # -# $Id: lonwhatsnew.pm,v 1.44 2006/01/06 21:52:19 albertel Exp $ +# $Id: lonwhatsnew.pm,v 1.48 2006/01/09 22:55:47 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -564,24 +564,34 @@ sub display_discussion_config { if ($current eq '') { $current = 'on'; } - my %status = ( - on => 'checked="checked"', - off => 'checked="checked"', - ); - $status{$current} = ''; - $r->print('
'.&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.').'
'.&mt('This can increase the time taken to gather data for the [_1] page by a few seconds.',"What's New?").'  '.&mt('Currently set to [_1] .'),"$current."); + my %opposite = ( + 'on' => 'off', + 'off' => 'on', + ); + $r->print(''); + $r->print('
'.&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.').'
'.&mt('This can increase the time taken to gather data for the [_1] page by a few seconds.',"What's New?").'  '.&mt('Currently set to [_1].',''.$current.'')); $r->print('

-
'. -&mt('Display of unread post counts?').'  + -on -    -off + '); - $r->print('

-
'); + $r->print('
+ +         + + '); return; } @@ -617,14 +627,14 @@ $$initpage{$current}.

$lt{'padc'}   END foreach my $choice (@chgstate) { - $r->print(''.$$initpage{$choice}.'  '); + $r->print(''); } $r->print('

'.&mt('If').' '.$$initpage{'coursespecific'}. '
'.$lt{'chce'}." \n"); foreach my $choice (@chgentry) { - $r->print(''.$$initpage{$choice}.'  '); + $r->print(''); } $r->print('

'); @@ -880,6 +890,9 @@ sub check_thresholds { if ($resource->handgrade($part) eq 'yes') { next; } + if ($resource->is_survey($part)) { + next; + } %{$stats{$part}} = (); my ($attempts,$users,$corrects,$degdiff,$av_attempts); if (exists($$resourcetracker{$symb."\0".$part."\0attempts"})) {