Diff for /loncom/homework/lonsimpleproblemedit.pm between versions 1.20.2.1 and 1.22

version 1.20.2.1, 2009/08/12 21:22:40 version 1.22, 2009/05/11 16:51:22
Line 222  sub handler { Line 222  sub handler {
      $spell_header));       $spell_header));
     if ($symb) {      if ($symb) {
  $r->print('<h1>'.&Apache::lonnet::gettitle($symb).'</h1>');   $r->print('<h1>'.&Apache::lonnet::gettitle($symb).'</h1>');
  $r->print('<table width="100%" bgcolor="#FFFFAA" border="2"><tr><td>');          $r->print('<p class="LC_warning">'
                    .&mt('Note: it can take up to 10 minutes for changes to take effect for all users.')
                    .&Apache::loncommon::help_open_topic('Caching')
                    .'</p>'
           );
         my $displaylink = &get_parent_uri($symb);          my $displaylink = &get_parent_uri($symb);
         if ($displaylink ne '') {                if ($displaylink ne '') {
             $r->print('<a href="'.$displaylink.'">'.&mt('Student View').'</a> - ');              $r->print(&Apache::lontemplate::start_functionslist()
                        .&Apache::lontemplate::item_functionslist(
                             '<a href="'.$displaylink.'">'.&mt('Student View').'</a>')
                        .&Apache::lontemplate::end_functionslist()
               );
         } else {          } else {
             $r->print('<span class="LC_error">'.&mt('An error occurred retrieving the link to this problem').'<br />'.&mt('You may need to [_1]re-select the course[_2] and then return to this resource to view it.','<a href="/adm/roles">','</a>').'</span><br />');               $r->print('<p class="LC_error">'
                        .&mt('An error occurred retrieving the link to this problem.')
                        .'<br />'
                        .&mt('You may need to [_1]re-select the course[_2] and then return to this resource to view it.'
                            ,'<a href="/adm/roles">','</a>')
                        .'</p>'
               );
         }          }
         $r->print(&mt('Note: it can take up to 10 minutes for changes to take effect for all users.').  
   &Apache::loncommon::help_open_topic('Caching').'</td></tr></table>');  
  $r->print('<table border="2" bgcolor="#FFFFFF" width="100%"><tr><td>'.   $r->print('<table border="2" bgcolor="#FFFFFF" width="100%"><tr><td>'.
                   &rawrendering($symb).                    &rawrendering($symb).
                   '</td></tr></table><br />');                    '</td></tr></table><br />');

Removed from v.1.20.2.1  
changed lines
  Added in v.1.22


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