[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

bisitz bisitz@source.lon-capa.org
Wed, 03 Jun 2009 14:35:19 -0000


bisitz		Wed Jun  3 14:35:19 2009 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  Changes related to modification of LON-CAPA screen header.
  - Suppress display of title_bar; will be fully removed later on
    (Remove style "display:none" from LC_title_bar to show it again)
  - Removed rolesinfo and related styles; content (name, role, realm) has already been moved to nav_bar before
  - Removed creation of special Construction Space page header in start_page
    (The header function should be called on each page which really needs this header.)
  
  Note: On some pages the floating of some header parts doesn't work correctly. This will be fixed by the upcoming changes for the student's / CC's menu items and the breadcrumbs component.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.835 loncom/interface/loncommon.pm:1.836
--- loncom/interface/loncommon.pm:1.835	Sat May 30 22:03:32 2009
+++ loncom/interface/loncommon.pm	Wed Jun  3 14:35:19 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.835 2009/05/30 22:03:32 bisitz Exp $
+# $Id: loncommon.pm,v 1.836 2009/06/03 14:35:19 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4381,21 +4381,6 @@
 	$name = &aboutmewrapper($name,$env{'user.name'},$env{'user.domain'});
     }
     
-    my $roleinfo=(<<ENDROLE);
-<td class="LC_title_bar_who">
-<div class="LC_title_bar_name">
-    $name
-    &nbsp;
-</div>
-<div class="LC_title_bar_role">
-$role&nbsp;
-</div>
-<div class="LC_title_bar_realm">
-$realm&nbsp;
-</div>
-</td>
-ENDROLE
-
     my $titleinfo = '<h1>'.$title.'</h1>';
     #
     # Extra info if you are the DC
@@ -4415,12 +4400,12 @@
 	    $forcereg=1;
 	}
 
-    if ($env{'request.state'} eq 'construct') {
-        $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls
-    }
+#    if ($env{'request.state'} eq 'construct') {
+#        $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls
+#    }
 
         my $titletable = '<table id="LC_title_bar">'
-                        ."<tr><td> $titleinfo $dc_info</td>".$roleinfo
+                        ."<tr><td> $titleinfo $dc_info</td>"
                         .'</tr></table>';
 
 	if ($no_nav_bar) {
@@ -4460,7 +4445,6 @@
     <td>$messages&nbsp;</td>
 </tr>
 <tr><td>$titleinfo $dc_info $menu</td>
-$roleinfo
 </tr>
 </table>
 ENDBODY
@@ -4743,10 +4727,10 @@
 table#LC_title_bar a {
   color: $fontmenu;
 }
-    
+
 table#LC_title_bar {
   clear: both;
-  /*display: none;*/
+  display: none;
 }
 
 table#LC_title_bar,
@@ -4775,26 +4759,6 @@
   background: $tabbg;
 }
 
-table#LC_title_bar .LC_title_bar_who {
-  background: $tabbg;
-  color: $fontmenu;
-  font: small;
-  text-align: right;
-  margin: 0;
-}
-
-table#LC_title_bar div.LC_title_bar_name {
-  margin: 0;
-}
-
-table#LC_title_bar div.LC_title_bar_role {
-  margin: 0;
-}
-
-table#LC_title_bar div.LC_title_bar_realm {
-  margin: 0;
-}
-
 table#LC_menubuttons img{
   border: none;
 }