[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
droeschl
droeschl@source.lon-capa.org
Wed, 02 Jun 2010 05:34:27 -0000
droeschl Wed Jun 2 05:34:27 2010 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
The last breadcrumb of course breadcrumbs is supposed to be wrapped in <b> tag, not <h1>.
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.273 loncom/interface/lonhtmlcommon.pm:1.274
--- loncom/interface/lonhtmlcommon.pm:1.273 Sun May 30 18:30:52 2010
+++ loncom/interface/lonhtmlcommon.pm Wed Jun 2 05:34:27 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.273 2010/05/30 18:30:52 droeschl Exp $
+# $Id: lonhtmlcommon.pm,v 1.274 2010/06/02 05:34:27 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1481,7 +1481,10 @@
my $lasttext = $last->{'no_mt'} ? $last->{'text'}
: mt( $last->{'text'} );
- $links .= htmltag( 'li', htmltag('h1', $lasttext), {title => $lasttext});
+ # last breadcrumb is the first order heading of a page
+ # for course breadcrumbs it's just bold
+ $links .= htmltag( 'li', htmltag($CourseBreadcrumbs ? 'b' : 'h1',
+ $lasttext), {title => $lasttext});
my $icons = '';
$faq = $last->{'faq'} if (exists($last->{'faq'}));