');
@@ -172,7 +171,7 @@ sub display_main_box {
if (($command eq 'chgthreshold')
&& $checkallowed->{'abovethreshold'}) {
- &display_threshold_config($r,$refpage,$tabbg,\%threshold_titles,
+ &display_threshold_config($r,$refpage,\%threshold_titles,
$cdom,$crs);
} elsif (($command eq 'chginterval')
&& $checkallowed->{'versionchanges'}) {
@@ -183,7 +182,7 @@ sub display_main_box {
} elsif ($command eq 'courseinit') {
&courseinit_config($r,$refpage,\%initpage);
} else {
- &display_actions_box($r,$tabbg,$command,$refpage,\%threshold_titles,
+ &display_actions_box($r,$command,$refpage,\%threshold_titles,
\%interval_titles,\%initpage,$cdom,$crs,$checkallowed);
}
my $end_page = &Apache::loncommon::end_page();
@@ -241,11 +240,8 @@ END
#-------------------------------
sub display_actions_box {
- my ($r,$tabbg,$command,$refpage,$threshold_titles,$interval_titles,
- $initpage,$cdom,$crs,$checkallowed) = @_;
- my $rowColor1 = "#ffffff";
- my $rowColor2 = "#eeeeee";
-
+ my ($r,$command,$refpage,$threshold_titles,$interval_titles,$initpage,
+ $cdom,$crs,$checkallowed) = @_;
my $udom = $env{'user.domain'};
my $uname = $env{'user.name'};
my $cid = $env{'request.course.id'};
@@ -256,7 +252,7 @@ sub display_actions_box {
'Group' => 'members',
);
my %lt = &Apache::lonlocal::texthash(
- 'yacc' => 'You are accessing an invalid course or group',
+ 'yacc' => 'You are accessing an invalid course',
'gtfr' => 'Go to first resource',
'hial' => 'Hide all',
'shal' => 'Show all',
@@ -286,11 +282,7 @@ sub display_actions_box {
$result = &store_courseinit_setting($uname,$udom,$cid,$initpage);
}
- my %threshold = (
- av_attempts => 2,
- degdiff => 0.5,
- numstudents => 2,
- );
+ my %threshold = ();
my %pagedesc = &Apache::lonlocal::texthash (
firstres => 'First resource',
whatsnew => "What's New? page",
@@ -303,7 +295,7 @@ sub display_actions_box {
my $currinit = $pagedesc{$initdisp}.' ('.$pagedesc{$initcontrol}.')';
unless ($cid) {
- $r->print('
'.$lt{'yacc'}.'
');
+ $r->print('
'.$lt{'yacc'}.'
');
return;
}
@@ -312,14 +304,14 @@ sub display_actions_box {
&GDBM_READER(),0640)) {
my $furl=$bighash{'first_url'};
untie(%bighash);
- $r->print(''.$lt{'gtfr'}.
- ' ');
+ $r->print(''.$lt{'gtfr'}.
+ ' ');
}
}
$r->print(&mt('Page set to be displayed after you have selected a role in this '.$lctype).
- '. '.&mt('Currently: [_1]',$currinit).'. '.
- &mt('Change for just this '.$lctype.'',$refpage).' '.
- &mt('or for all your courses/groups',$refpage).' ');
+ '. '.&mt('Currently: [_1]',$currinit).'. '.
+ &mt('Change for just this '.$lctype.'',$refpage).' '.
+ &mt('or for all your courses.',$refpage).' ');
if ($command eq 'reset') {
$result = &process_reset($cdom,$crs);
@@ -334,9 +326,9 @@ sub display_actions_box {
my $store_result=&store_display_settings($uname,$udom,$cid,$checkallowed);
unless ($store_result eq 'ok') {
- &Apache::lonnet::logthis('Error storing whatsnew settings: '.
+ &Apache::lonnet::logthis('Error saving whatsnew settings: '.
$store_result.' for '.'user '.$uname.':'.$udom.' in '.$lctype.' '.$cid);
- $result .= &mt('Unable to store visibility settings due to [_1]',
+ $result .= &mt('Unable to save visibility settings due to [_1]',
$store_result);
}
@@ -400,7 +392,7 @@ sub display_actions_box {
}
if ($needitems) {
- &getitems(\%unread,\%ungraded,\%bombed,\%triggered,\%changed,\@newdiscussions,\@tograde,\@bombs,\@warnings,$rowColor1,$rowColor2,\%threshold,$cdom,$crs,\%res_title,\%show,$starttime,$countunread);
+ &getitems(\%unread,\%ungraded,\%bombed,\%triggered,\%changed,\@newdiscussions,\@tograde,\@bombs,\@warnings,\%threshold,$cdom,$crs,\%res_title,\%show,$starttime,$countunread);
}
if ($show{'coursenormalmail'}) {
$msgcount = &getnormalmail(\@newmsgs);
@@ -419,7 +411,7 @@ sub display_actions_box {
}
}
- $r->print('
');
+ $r->print('
');
my $displayed = 0;
my $totalboxes = 0;
@@ -434,20 +426,17 @@ sub display_actions_box {
foreach my $actionitem (@actionorder) {
if ($$checkallowed{$actionitem}) {
if ($displayed == $halfway) {
- $r->print('