Diff for /loncom/xml/londefdef.pm between versions 1.411 and 1.412

version 1.411, 2009/10/01 15:31:24 version 1.412, 2009/10/15 22:39:58
Line 561  sub start_body { Line 561  sub start_body {
 #    'no_title'       => 1,  #    'no_title'       => 1,
     'force_register' => 1});      'force_register' => 1});
   
     $currentstring .= &Apache::lonhtmlcommon::breadcrumbs();          if ($env{'request.state'} eq 'construct') {
               $currentstring .= &Apache::lonhtmlcommon::breadcrumbs();
           }
   
         my $header = '';          my $header = '';
         if ($env{'request.state'} ne 'published' &&          if ($env{'request.state'} ne 'published' &&
Line 575  sub start_body { Line 577  sub start_body {
             $currentstring.=&Apache::loncommon::head_subbox(              $currentstring.=&Apache::loncommon::head_subbox(
                                 &Apache::loncommon::CSTR_pageheader()                                  &Apache::loncommon::CSTR_pageheader()
                                .$header);                                 .$header);
           } elsif ($env{'request.state'} eq 'edit') {
               $currentstring.=&Apache::loncommon::head_subbox($header);
         }          }
         $currentstring.=&Apache::lonxml::message_location();          $currentstring.=&Apache::lonxml::message_location();
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
Line 597  sub edit_controls { Line 601  sub edit_controls {
 </div>';  </div>';
     }      }
     $result .= '      $result .= '
 <div><input type="submit" name="editmode" accesskey="e" value="'.&mt('Edit').'" /></div>  <div><input type="submit" name="editmode" accesskey="e" value="'.&mt('Edit').'" />';
       if (($env{'request.course.id'}) && ($env{'form.forceedit'})) {
           $result .= ('&nbsp;' x 3).'<input type="button" value="'.&mt('Course View').'" onclick="javascript:location.href=currentURL" />';
       }
       $result .= '</div>
 </div>  </div>
 </form>  </form>
 ';  ';

Removed from v.1.411  
changed lines
  Added in v.1.412


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