[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm lonhtmlcommon.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 01 May 2006 19:07:19 -0000
albertel Mon May 1 15:07:19 2006 EDT
Modified files:
/loncom/interface loncommon.pm lonhtmlcommon.pm
Log:
- breadcrumbs classed/ided
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.356 loncom/interface/loncommon.pm:1.357
--- loncom/interface/loncommon.pm:1.356 Wed Apr 26 11:29:51 2006
+++ loncom/interface/loncommon.pm Mon May 1 15:07:16 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.356 2006/04/26 15:29:51 albertel Exp $
+# $Id: loncommon.pm,v 1.357 2006/05/01 19:07:16 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3118,7 +3118,7 @@
color: green;
}
-table#LC_top_nav, table#LC_menubuttons, table#LC_nav_location {
+table#LC_top_nav, table#LC_menubuttons, table#LC_nav_location, table#LC_breadcrumbs {
width: 100%;
background: $pgbg;
border: 0px;
@@ -3145,6 +3145,19 @@
color: $font;
font-family: $sans;
}
+table#LC_breadcrumbs td {
+ background: $tabbg;
+ color: $font;
+ font-family: $sans;
+ font-size: smallest;
+}
+table#LC_breadcrumbs td.LC_breadcrumb_component {
+ background: $tabbg;
+ color: $font;
+ font-family: $sans;
+ font-size: larger;
+ text-align: right;
+}
.LC_menubuttons_inline_text {
color: $font;
font-family: $sans;
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.125 loncom/interface/lonhtmlcommon.pm:1.126
--- loncom/interface/lonhtmlcommon.pm:1.125 Wed Apr 19 18:26:26 2006
+++ loncom/interface/lonhtmlcommon.pm Mon May 1 15:07:16 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.125 2006/04/19 22:26:26 albertel Exp $
+# $Id: lonhtmlcommon.pm,v 1.126 2006/05/01 19:07:16 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1165,20 +1165,10 @@
my @Crumbs;
sub breadcrumbs {
- my ($color,$component,$component_help,$function,$domain,$menulink,
+ my (undef,$component,$component_help,undef,undef,$menulink,
$helplink) = @_;
- if (! defined($color)) {
- if (! defined($function)) {
- $function = &Apache::loncommon::get_users_function();
- }
- $color = &Apache::loncommon::designparm($function.'.tabbg',
- $domain);
- }
#
- my $Str = "\n".
- '<table width="100%" border="0" cellpadding="0" cellspacing="0">'.
- '<tr><td bgcolor="'.$color.'">'.
- '<font size="-1">';
+ my $Str = "\n".'<table id="LC_breadcrumbs"><tr><td>';
#
# Make the faq and bug data cascade
my $faq = '';
@@ -1233,17 +1223,19 @@
# $icons .= &Apache::loncommon::help_open_bug($bug);
# }
if ($helplink ne 'nohelp') {
- $icons .= &Apache::loncommon::help_open_menu($color,$component,$component_help,$function,$faq,$bug);
+ $icons .= &Apache::loncommon::help_open_menu(undef,$component,
+ $component_help,
+ undef,$faq,$bug);
}
if ($icons ne '') {
$Str .= $icons.' ';
}
#
- $Str .= $links.'</font></td>';
+ $Str .= $links.'</td>';
#
if (defined($component)) {
- $Str .= '<td align="right" bgcolor="'.$color.'">'.
- '<font size="+1">'.&mt($component).'</font></td>';
+ $Str .= '<td class="LC_breadcrumb_component">'.
+ &mt($component).'</td>';
}
$Str .= '</tr></table>'."\n";
#