Diff for /loncom/interface/lonsyllabus.pm between versions 1.87 and 1.88

version 1.87, 2009/04/21 17:54:27 version 1.88, 2009/04/28 14:43:06
Line 252  if ($target ne 'tex') { Line 252  if ($target ne 'tex') {
  $r->print(&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')));   $r->print(&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')));
  }   }
 }  }
   #----------Print last update
    my $lastmod=$syllabus{'uploaded.lastmodified'};
          $lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never'));
          my $who = &Apache::loncommon::aboutmewrapper(
                       &Apache::loncommon::plainname($syllabus{'uploaded.name'},
                        $syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'},
                        $syllabus{'uploaded.domain'});
    if ($target ne 'tex') {
      $r->print('<div class="LC_info">'.&mt('Last updated').': '.
        $lastmod . ' '.
        ($who ? &mt('by').' '.$who
                              : '' ) . 
                '</div>' );
        
          } else {
      $r->print('\\\\ '.&mt('Last updated').': '.$lastmod.' '.
        ($who? &mt('by').'\\\\ '.
               &Apache::loncommon::plainname($syllabus{'uploaded.name'},$syllabus{'uploaded.domain'})
             :'')
        .'\\\\');
          }
 #--------Functions  #--------Functions
 if ($target ne 'tex') {  if ($target ne 'tex') {
  if($allowed || $privileged){   if($allowed || $privileged){
Line 318  if($target ne 'tex'){ Line 339  if($target ne 'tex'){
     } else {      } else {
  $r->print('\end{tabular}\\\\');   $r->print('\end{tabular}\\\\');
     }      }
 #----------Print last update  
  my $lastmod=$syllabus{'uploaded.lastmodified'};  
        $lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never'));  
        my $who = &Apache::loncommon::aboutmewrapper(  
                     &Apache::loncommon::plainname($syllabus{'uploaded.name'},  
                      $syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'},  
                      $syllabus{'uploaded.domain'});  
  if ($target ne 'tex') {  
    $r->print('<table><tr><td>'.&mt('Last updated').':</td><td>'.  
      $lastmod.'</td><td>'.  
      ($who ? &mt('by').' '.$who  
                            : '' ).  
      '</td></tr></table>');  
        } else {  
    $r->print('\\\\ '.&mt('Last updated').': '.$lastmod.' '.  
      ($who? &mt('by').'\\\\ '.  
             &Apache::loncommon::plainname($syllabus{'uploaded.name'},$syllabus{'uploaded.domain'})  
           :'')  
      .'\\\\');  
        }  
 # -------------------------------------------------------------- Announcements?  # -------------------------------------------------------------- Announcements?
     my $day = &Apache::lonannounce::showday(time,2,      my $day = &Apache::lonannounce::showday(time,2,
  &Apache::lonannounce::readcalendar($cdom.'_'.$cnum));   &Apache::lonannounce::readcalendar($cdom.'_'.$cnum));

Removed from v.1.87  
changed lines
  Added in v.1.88


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