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

version 1.406, 2009/05/26 14:06:23 version 1.411, 2009/10/01 15:31:24
Line 540  sub start_body { Line 540  sub start_body {
   
     # Breadcrumbs      # Breadcrumbs
     &Apache::lonhtmlcommon::clear_breadcrumbs();      &Apache::lonhtmlcommon::clear_breadcrumbs();
     &Apache::lonhtmlcommon::add_breadcrumb({      if ($env{'request.state'} eq 'construct') {
         'text'  => 'Construction Space',          &Apache::lonhtmlcommon::add_breadcrumb({
         'href'  => '', # FIXME Add link to /priv/[user]              'text'  => 'Construction Space',
     });              'href'  => &Apache::loncommon::authorspace(),
     &Apache::lonhtmlcommon::add_breadcrumb({          });
         'text'  => 'HTML Editor',          &Apache::lonhtmlcommon::add_breadcrumb({
         'href'  => '',              'text'  => 'HTML Editor',
     });                  'href'  => '',
           });
       } else {
           # FIXME Where are we?
       }
   
  $currentstring =    $currentstring = 
     &Apache::loncommon::start_page($Apache::londefdef::title,      &Apache::loncommon::start_page($Apache::londefdef::title,
Line 557  sub start_body { Line 561  sub start_body {
 #    'no_title'       => 1,  #    'no_title'       => 1,
     'force_register' => 1});      'force_register' => 1});
   
     $currentstring .= &Apache::lonhtmlcommon::breadcrumbs()      $currentstring .= &Apache::lonhtmlcommon::breadcrumbs();
                      .&Apache::loncommon::head_subbox(  
                           &Apache::loncommon::CSTR_pageheader());           my $header = '';
           if ($env{'request.state'} ne 'published' &&
  if ($env{'request.state'} ne 'published') {              $env{'request.state'} ne 'construct') {
     $currentstring.=&Apache::lonmenu::constspaceform();              $header=&Apache::lonmenu::constspaceform();
     $currentstring.=&Apache::londefdef::edit_controls();          }
  }          if ($env{'request.state'} ne 'published') {
  $currentstring.=&Apache::lonxml::message_location();              $header.=&Apache::londefdef::edit_controls();
           }
           if ($env{'request.state'} eq 'construct') {
               $currentstring.=&Apache::loncommon::head_subbox(
                                   &Apache::loncommon::CSTR_pageheader()
                                  .$header);
           }
           $currentstring.=&Apache::lonxml::message_location();
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
  $currentstring = '';   #  '\begin{document}' is in header.          $currentstring = '';   #  '\begin{document}' is in header.
     }       }
   
     return $currentstring;      return $currentstring;
 }  }
   
Line 585  sub edit_controls { Line 597  sub edit_controls {
 </div>';  </div>';
     }      }
     $result .= '      $result .= '
 <div class="LC_edit_problem_header_edit_row"><input type="submit" name="editmode" accesskey="e" value="'.&mt('Edit').'" /></div></div>  <div><input type="submit" name="editmode" accesskey="e" value="'.&mt('Edit').'" /></div>
   </div>
 </form>  </form>
 <br />';  ';
     return $result;      return $result;
 }  }
   

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


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