Diff for /loncom/interface/loncommon.pm between versions 1.915 and 1.916

version 1.915, 2009/11/18 11:18:23 version 1.916, 2009/11/18 20:47:59
Line 4513  sub bodytag { Line 4513  sub bodytag {
   
     if ($env{'environment.remote'} eq 'off') {      if ($env{'environment.remote'} eq 'off') {
         # No Remote          # No Remote
         if ($no_nav_bar) { return $bodytag; }           if ($no_nav_bar || $env{'form.inhibitmenu'} eq 'yes') { 
               return $bodytag; 
           } 
   
         if ($env{'request.state'} eq 'construct') { $forcereg=1; }          if ($env{'request.state'} eq 'construct') { $forcereg=1; }
   
Line 4521  sub bodytag { Line 4523  sub bodytag {
         #        $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls          #        $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls
         #    }          #    }
   
         $bodytag .= qq|<div id="LC_nav_bar">$name $role<br />  
             <em>$realm</em> $dc_info</div>| unless $env{'form.inhibitmenu'};  
   
         if (   $env{'form.inhibitmenu'} eq 'yes'   
             || $ENV{'REQUEST_URI'} eq '/adm/logout'  
             || $env{'request.noversionuri'} =~ m{^/res/adm/pages/}) {  
   
           if ($env{'request.noversionuri'} =~ m{^/res/adm/pages/}) {
                $bodytag .= qq|<div id="LC_nav_bar">$name $role<br />
                   <em>$realm</em> $dc_info</div>|;
             return $bodytag;              return $bodytag;
         }          }
   
           $bodytag .= qq|<div id="LC_nav_bar">$name $role</div>|;
   
         $bodytag .= Apache::lonhtmlcommon::scripttag(          $bodytag .= Apache::lonhtmlcommon::scripttag(
             Apache::lonmenu::utilityfunctions(), 'start');              Apache::lonmenu::utilityfunctions(), 'start');
   
         $bodytag .= Apache::lonmenu::primary_menu();          $bodytag .= Apache::lonmenu::primary_menu();
   
           $bodytag .= qq|<div id="LC_realm">$realm<br/>$dc_info</div>|;
   
         #don't show menus for public users          #don't show menus for public users
         if($env{'user.name'} ne 'public' && $env{'user.domain'} ne 'public'){          if($env{'user.name'} ne 'public' && $env{'user.domain'} ne 'public'){
             $bodytag .= Apache::lonmenu::secondary_menu();              $bodytag .= Apache::lonmenu::secondary_menu();
Line 4567  sub bodytag { Line 4571  sub bodytag {
     # Explicit link to get inline menu      # Explicit link to get inline menu
     my $menu= ($no_inline_link?''      my $menu= ($no_inline_link?''
        :'<a href="/adm/remote?action=collapse" target="_top">'.&mt('Switch to Inline Menu Mode').'</a>');         :'<a href="/adm/remote?action=collapse" target="_top">'.&mt('Switch to Inline Menu Mode').'</a>');
     $bodytag .= qq|<div id="LC_nav_bar">$name $role      $bodytag .= qq|<div id="LC_nav_bar">$name $role</div>
             <em>$realm</em> $dc_info </div>  
             <ol class="LC_primary_menu LC_right">              <ol class="LC_primary_menu LC_right">
                 <li>$menu</li>                  <li>$menu</li>
             </ol>| unless $env{'form.inhibitmenu'};              </ol><div id="LC_realm">$realm<br/>$dc_info</div>| unless $env{'form.inhibitmenu'};
     #      #
     return(<<ENDBODY);      return(<<ENDBODY);
 $bodytag  $bodytag
Line 6003  fieldset > legend { Line 6006  fieldset > legend {
   margin: 0.2em 0 0 0;    margin: 0.2em 0 0 0;
 }  }
   
   #LC_realm {
     margin: 0.2em 0 0 0;
     padding: 0;
     font-weight: bold;
     text-align: center;
   }
   
 #LC_nav_bar em {  #LC_nav_bar em {
   font-weight: bold;    font-weight: bold;
   font-style: normal;    font-style: normal;

Removed from v.1.915  
changed lines
  Added in v.1.916


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