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

amueller amueller@source.lon-capa.org
Wed, 01 Apr 2009 14:22:11 -0000


amueller		Wed Apr  1 14:22:11 2009 EDT

  Modified files:              
    /loncom/interface	loncommon.pm lonhtmlcommon.pm londocs.pm 
  Log:
  fit the use of the style LC_MenuBreadcrumbs in the side Edit Course in purpose to be conform with the idea in using styles. LC_MenuBreadcrumbs is declared as an id style but was used twice on this page.
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.782 loncom/interface/loncommon.pm:1.783
--- loncom/interface/loncommon.pm:1.782	Fri Mar 27 12:26:10 2009
+++ loncom/interface/loncommon.pm	Wed Apr  1 14:22:11 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.782 2009/03/27 12:26:10 bisitz Exp $
+# $Id: loncommon.pm,v 1.783 2009/04/01 14:22:11 amueller Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -935,7 +935,7 @@
     $template.=' <a target="_top" href="'.$link.'" title="'.$title.'">'
               .'<img src="'.$helpicon.'" border="0"'
               .' alt="'.&mt('Help: [_1]',$topic).'"'
-              .' title="'.$title.'"'
+              .' title="'.$title.'"' 
               .' /></a>';
     if ($text ne "") {	
         $template.='</span>';
@@ -5622,6 +5622,7 @@
         padding: 4px;
         border: 1px solid #000033;
         white-space: nowrap;
+/*		vertical-align: middle; */
 }
 
 dl,ul,div,fieldset {
@@ -5714,7 +5715,7 @@
 	font-weight:bold;
 }
 
-ol#LC_MenuBreadcrumbs, ol#LC_PathBreadcrumbs {
+ol#LC_MenuBreadcrumbs, ol#LC_PathBreadcrumbs, ul.LC_CourseBreadcrumbs{
 	border-top: solid 1px RGB(255, 255, 255);
 	height: 20px;
 	line-height: 20px;
@@ -5725,17 +5726,17 @@
 	background: url(/adm/lonIcons/lightGreyBG.png) repeat-x left top;
 }
 
-ol#LC_MenuBreadcrumbs li, ol#LC_PathBreadcrumbs li {
+ol#LC_MenuBreadcrumbs li, ol#LC_PathBreadcrumbs li, ul.LC_CourseBreadcrumbs li {
 /*
 	background: url(/adm/lonIcons/arrow_white.png) no-repeat left center;
 */
 	display: inline;
 	padding: 0px 0px 0px 10px;
-	vertical-align: bottom;
+/*	vertical-align: bottom; */
 	overflow:hidden;
 }
 
-ol#LC_MenuBreadcrumbs li a {
+ol#LC_MenuBreadcrumbs li a, ul.LC_CourseBreadcrumbs li a {
 	text-decoration: none;
 	font-size:90%;
 }
@@ -5991,6 +5992,18 @@
 	vertical-align:middle;
 }
 
+/*
+ This style is used for standard function lists, e.g. functions of Personal Information Page.
+ It produces a horizontally aligned list with a bullet at the beginning of each function item.
+ */
+.LC_fieldset_functions li {
+	float: right;
+	height: 35px;
+	background-color: blue; 
+	white-space: nowrap;
+	margin-left: 10px;	
+}
+
 a.LC_toolbarItem{
 	display:block;
 	padding:0;
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.204 loncom/interface/lonhtmlcommon.pm:1.205
--- loncom/interface/lonhtmlcommon.pm:1.204	Tue Mar 31 21:09:36 2009
+++ loncom/interface/lonhtmlcommon.pm	Wed Apr  1 14:22:11 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.204 2009/03/31 21:09:36 kaisler Exp $
+# $Id: lonhtmlcommon.pm,v 1.205 2009/04/01 14:22:11 amueller Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1305,10 +1305,15 @@
     my @Crumbs;
     
     sub breadcrumbs {
-        my ($component,$component_help,$menulink,$helplink,$css_class,$no_mt) = @_;
+        my ($component,$component_help,$menulink,$helplink,$css_class,$no_mt, $no_realBreadcrumb) = @_;
         #
 	$css_class ||= 'LC_breadcrumbs';
         my $Str1 = '<ol id="LC_MenuBreadcrumbs">';
+	
+		if($no_realBreadcrumb){
+			$Str1 = '<ul class="LC_CourseBreadcrumbs">';
+		}
+
         my $Str = '';
         #
         # Make the faq and bug data cascade
@@ -1383,7 +1388,13 @@
 							 $faq,$bug);
 	}
         #
-        $Str1 .= $links.'</ol>';
+		
+
+		if($no_realBreadcrumb){
+        	$Str1 .= $links.'</ul>';
+		} else {
+        	$Str1 .= $links.'</ol>';		
+		}
         #
         if (defined($component)) {
             $Str .= "\n".'<table class="'.$css_class.'">'
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.359 loncom/interface/londocs.pm:1.360
--- loncom/interface/londocs.pm:1.359	Tue Mar 17 21:41:30 2009
+++ loncom/interface/londocs.pm	Wed Apr  1 14:22:11 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.359 2009/03/17 21:41:30 tempelho Exp $
+# $Id: londocs.pm,v 1.360 2009/04/01 14:22:11 amueller Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1012,7 +1012,7 @@
     }
     $plain=~s/\&gt\;\s*$//;
     return (&Apache::lonhtmlcommon::breadcrumbs(undef,undef,0,'nohelp',
-					       'LC_docs_path'),$randompick,$ishidden,$isencrypted,$plain,$is_random_order);
+					       'LC_docs_path', undef, 1 ),$randompick,$ishidden,$isencrypted,$plain,$is_random_order);
 }
 
 sub log_docs {