Diff for /loncom/homework/bridgetask.pm between versions 1.40 and 1.42

version 1.40, 2005/08/15 19:36:21 version 1.42, 2005/08/15 19:41:43
Line 148  sub add_grading_button { Line 148  sub add_grading_button {
  &mt("Get a submission to grade").'" />';   &mt("Get a submission to grade").'" />';
     $result.='<input type="hidden" name="grade_target" value="webgrade" />';      $result.='<input type="hidden" name="grade_target" value="webgrade" />';
     if (&Apache::lonnet::allowed('mgq',$env{'request.course.id'})) {      if (&Apache::lonnet::allowed('mgq',$env{'request.course.id'})) {
  # FIXME need a permission for limiting this to 'powerful users'  
   
  my ($entries,$ready,$locks)=&get_queue_counts('gradingqueue');   my ($entries,$ready,$locks)=&get_queue_counts('gradingqueue');
  $result.='<p>'.&mt("Grading Queue has [_1] entries. [_2] of them are ready to be graded and [_3] of them are currently being graded",$entries,$ready,$locks);   $result.='<p>'.&mt("Grading Queue has [_1] entries. [_2] of them are ready to be graded and [_3] of them are currently being graded",$entries,$ready,$locks);
   
Line 285  sub start_Task { Line 283  sub start_Task {
  }   }
     } elsif ($target eq 'grade' && !$env{'form.webgrade'}) {      } elsif ($target eq 'grade' && !$env{'form.webgrade'}) {
  if ($status eq 'NEEDS_CHECKIN') {   if ($status eq 'NEEDS_CHECKIN') {
     if (&proctor_check_auth($slot_name,$slot)) {      &proctor_check_auth($slot_name,$slot);
  # FIXME immeadiatly add this to the grading queue  
                         #      with slot->{'endtime'} for when grading can   
                         #      begin on this resource  
  # FIXME I think the above is done by default,  
                         #        need to check that  
                         #        failure doesn't do this.  
      }  
  }   }
     }      }
  } elsif ($target eq 'web') {   } elsif ($target eq 'web') {

Removed from v.1.40  
changed lines
  Added in v.1.42


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>