Diff for /loncom/interface/lonmenu.pm between versions 1.301 and 1.305

version 1.301, 2009/11/10 13:58:55 version 1.305, 2009/11/19 10:26:15
Line 689  sub innerregister { Line 689  sub innerregister {
             }              }
             # Finally, turn the button on or off              # Finally, turn the button on or off
             if ($cfile && !$const_space) {              if ($cfile && !$const_space) {
                 $editbutton=&switch                  my $nocrsedit;
                     ('','',6,1,'pcstr.gif','edit[_1]','resource[_2]',                  # Suppress display where CC has switched to student role.
                   if ($env{'request.course.id'}) {
                       unless(&Apache::lonnet::allowed('mdc',
                                                       $env{'request.course.id'})) {
                           $nocrsedit = 1;
                       }
                   }
                   if ($nocrsedit) {
                       $editbutton=&clear(6,1);
                   } else {
                       $editbutton=&switch
                          ('','',6,1,'pcstr.gif','edit[_1]','resource[_2]',
                      "go('".$cfile."');","Edit this resource");                       "go('".$cfile."');","Edit this resource");
                 $noeditbutton = 0;                      $noeditbutton = 0;
                   }
             } elsif ($editbutton eq '') {              } elsif ($editbutton eq '') {
                 $editbutton=&clear(6,1);                  $editbutton=&clear(6,1);
             }              }
Line 820  ENDMENUITEMS Line 832  ENDMENUITEMS
     if ($addremote) {      if ($addremote) {
   
         #SD START (work in progress!)          #SD START (work in progress!)
           Apache::lonhtmlcommon::clear_breadcrumb_tools();
         # Arrows for navigation          # Arrows for navigation
         Apache::lonhtmlcommon::add_breadcrumb_tool( 'A', $inlineremote[21] );          Apache::lonhtmlcommon::add_breadcrumb_tool( 'A', $inlineremote[21] );
         Apache::lonhtmlcommon::add_breadcrumb_tool( 'A', $inlineremote[23] );          Apache::lonhtmlcommon::add_breadcrumb_tool( 'A', $inlineremote[23] );
Line 893  ENDMENUITEMS Line 906  ENDMENUITEMS
 </script>  </script>
 $timesync  $timesync
 $breadcrumb  $breadcrumb
 <!--$tablestart--!>  <!-- $tablestart -->
 <!--$inlinebuttons--!>  <!-- $inlinebuttons -->
 <!--$tableend --!>  <!-- $tableend -->
 $newmail  $newmail
 <!--$separator--!>  <!-- $separator -->
 <script type="text/javascript">  <script type="text/javascript">
 // END LON-CAPA Internal  // END LON-CAPA Internal
 </script>  </script>
Line 1255  sub switch { Line 1268  sub switch {
        my $pic=         my $pic=
    '<img alt="'.$text.'" src="'.     '<img alt="'.$text.'" src="'.
    &Apache::loncommon::lonhttpdurl('/res/adm/pages/'.$img).     &Apache::loncommon::lonhttpdurl('/res/adm/pages/'.$img).
    '" align="'.($nobreak==3?'right':'left').'" class="LC_noBorder" />';     '" align="'.($nobreak==3?'right':'left').'" class="LC_icon" />';
        if ($env{'browser.interface'} eq 'faketextual') {         if ($env{'browser.interface'} eq 'faketextual') {
 # Main Menu  # Main Menu
    if ($nobreak==3) {     if ($nobreak==3) {

Removed from v.1.301  
changed lines
  Added in v.1.305


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