Diff for /loncom/homework/outputtags.pm between versions 1.43 and 1.44

version 1.43, 2005/11/08 12:00:22 version 1.44, 2005/11/09 12:05:56
Line 91  sub start_displayduedate { Line 91  sub start_displayduedate {
  }   }
   
  if ($showduedate) {   if ($showduedate) {
       my $duetext = &Apache::lonnavmaps::timeToHumanString($date, '', $format);
     if ($target eq 'web') {      if ($target eq 'web') {
  if (lc($style) !~ 'plain') {    if (lc($style) !~ 'plain') { 
     $result ='<table border="on"><tr><td>Due '.      $result ='<table border="on"><tr><td>Due '.$duetext.'</td></tr></table>';
  &Apache::lonnavmaps::timeToHumanString($date,'', $format).  
  '</td></tr></table>';  
  } else {   } else {
     $result=&mt('Due').' '.&Apache::lonnavmaps::timeToHumanString($date);      $result=&mt('Due').' '.$duetext;
  }   }
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
    # For TeX we'll make the duedate tag work exactly like the 
    # duedate tag for web.
   
    my $duetext = &Apache::lonnavmaps::timeToHumanString($date, '', $format);
    if (lc($style) !~ 'plain') {
       # The due date will be put in a box.
       
       $result = '\framebox{'
             .&mt('Due').' '.$duetext.'}';
    } else {
       $result = &mt('Due') . ' '.$duetext;
    }
     }      }
  }   }
             

Removed from v.1.43  
changed lines
  Added in v.1.44


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