Diff for /loncom/interface/loncommon.pm between versions 1.902 and 1.904

version 1.902, 2009/10/24 03:24:13 version 1.904, 2009/10/28 08:47:56
Line 4444  sub bodytag { Line 4444  sub bodytag {
   
     if ($env{'environment.remote'} eq 'off') {      if ($env{'environment.remote'} eq 'off') {
         # No Remote          # No Remote
         if ($env{'request.state'} eq 'construct') {          if ($no_nav_bar) { return $bodytag; } 
             $forcereg=1;  
           if ($env{'request.state'} eq 'construct') { $forcereg=1; }
   
           #    if ($env{'request.state'} eq 'construct') {
           #        $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/}) {
   
               return $bodytag;
         }          }
   
     #    if ($env{'request.state'} eq 'construct') {          $bodytag .= Apache::lonhtmlcommon::scripttag(
     #        $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls              Apache::lonmenu::utilityfunctions(), 'start');
     #    }  
           $bodytag .= Apache::lonmenu::primary_menu();
         my $titletable = '<table id="LC_title_bar">'  
                             ."<tr><td> $titleinfo $dc_info</td>"          #don't show menus for public users
                             .'</tr></table>';          if($env{'user.name'} ne 'public' && $env{'user.domain'} ne 'public'){
               $bodytag .= Apache::lonmenu::secondary_menu();
         if ($no_nav_bar) {              $bodytag .= Apache::lonmenu::serverform();
             $bodytag .= $titletable;              $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); 
         } else {              $bodytag .= Apache::lonmenu::innerregister($forcereg) if $forcereg;
             $bodytag .= qq|<div id="LC_nav_bar">$name $role<br />          }else{
                 <em>$realm</em> $dc_info</div>| unless $env{'form.inhibitmenu'};              # this is to seperate menu from content when there's no secondary
               # menu. Especially needed for public accessible ressources.
 #SD $titletable is obsolete              $bodytag .= '<hr style="clear:both" />';
 #SD            if ($env{'request.state'} eq 'construct') {              $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); 
 #SD                $bodytag .= &Apache::lonmenu::menubuttons($forcereg,$titletable);  
 #SD            } else {  
 #SD                $bodytag .= &Apache::lonmenu::menubuttons($forcereg).$titletable;  
 #SD            }  
                if (   $env{'form.inhibitmenu'} eq 'yes'   
                    || $ENV{'REQUEST_URI'} eq '/adm/logout'  
                    || $env{'request.noversionuri'} =~ m{^/res/adm/pages/}) {  
                      
                    return $bodytag;  
                }  
   
                $bodytag .= Apache::lonhtmlcommon::scripttag(  
                                 Apache::lonmenu::utilityfunctions(),  
                                 'start');  
                $bodytag .= Apache::lonmenu::primary_menu();  
                $bodytag .= Apache::lonmenu::secondary_menu();  
                #SD remove next line  
                #$bodytag .= Apache::lonmenu::menubuttons($forcereg);  
                $bodytag .= Apache::lonmenu::serverform();  
                $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end');   
                $bodytag .= Apache::lonmenu::innerregister($forcereg) if $forcereg;  
         }          }
   
           #SD testing
           #$bodytag .= Apache::lonmenu::menubuttons($forcereg);
         return $bodytag;          return $bodytag;
     }      }
   
Line 4884  table#LC_mainmenu td.LC_mainmenu_column Line 4880  table#LC_mainmenu td.LC_mainmenu_column
  clear:both;   clear:both;
  background: $sidebg;   background: $sidebg;
  border-bottom: 1px solid $lg_border_color;   border-bottom: 1px solid $lg_border_color;
  line-height: 32px;    line-height: 2.5em; 
    /* SD working here
    height: 2.5em;
    overflow: hidden; */
  margin: 0;   margin: 0;
  padding: 0;   padding: 0;
 }  }
Line 5808  ul#LC_secondary_menu a:hover, Line 5807  ul#LC_secondary_menu a:hover,
 .LC_FormSectionClearButton input:hover  .LC_FormSectionClearButton input:hover
 ul.LC_TabContent   li:hover a {  ul.LC_TabContent   li:hover a {
  color:#BF2317;   color:#BF2317;
         text-decoration:none;      text-decoration:none;
 }  }
   
 h1 {  h1 {
Line 6038  ol#LC_PathBreadcrumbs { Line 6037  ol#LC_PathBreadcrumbs {
  padding-left: 10px;   padding-left: 10px;
  margin: 0;   margin: 0;
  list-style-position: inside;   list-style-position: inside;
       /* SD working here
       white-space: nowrap; */
 }  }
   
 ol#LC_MenuBreadcrumbs li,   ol#LC_MenuBreadcrumbs li, 
Line 6045  ol#LC_PathBreadcrumbs li, Line 6046  ol#LC_PathBreadcrumbs li,
 ul.LC_CourseBreadcrumbs li {  ul.LC_CourseBreadcrumbs li {
     display: inline;      display: inline;
     white-space: nowrap;      white-space: nowrap;
       /* SD working here
       white-space: normal; */
 }  }
   
 ol#LC_MenuBreadcrumbs li a,  ol#LC_MenuBreadcrumbs li a,

Removed from v.1.902  
changed lines
  Added in v.1.904


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