[LON-CAPA-cvs] cvs: rat / lonratedt.pm lonratmenu.pm
bisitz
bisitz@source.lon-capa.org
Tue, 09 Jun 2009 15:01:28 -0000
bisitz Tue Jun 9 15:01:28 2009 EDT
Modified files:
/rat lonratedt.pm lonratmenu.pm
Log:
- Added some breadcrumbs to RAT
- Don't use <h1> for path and filename output
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.96 rat/lonratedt.pm:1.97
--- rat/lonratedt.pm:1.96 Mon May 25 17:49:43 2009
+++ rat/lonratedt.pm Tue Jun 9 15:01:28 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Edit Handler for RAT Maps
#
-# $Id: lonratedt.pm,v 1.96 2009/05/25 17:49:43 bisitz Exp $
+# $Id: lonratedt.pm,v 1.97 2009/06/09 15:01:28 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -543,7 +543,7 @@
&Apache::lonhtmlcommon::clear_breadcrumbs();
&Apache::lonhtmlcommon::add_breadcrumb({
text => 'Construction Space',
- href => '', # FIXME Add link to priv/[user]
+ href => &Apache::loncommon::authorspace(),
faq => 6,
bug => 'RAT',
help => 'Sequence_Simple_Editor_Creation',});
@@ -640,8 +640,13 @@
sub nodir {
my ($r,$dir)=@_;
$dir=~s{^/home/$LONCAPA::username_re/public_html}{};
- $r->print(&Apache::loncommon::start_page('Construction Space',undef)
- .&Apache::lonhtmlcommon::breadcrumbs() # FIXME add breadcrumbs
+ my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
+ 'text' => 'Construction Space'}];
+# {'href' => '',
+# 'text' => 'No such directory'}];
+ $r->print(&Apache::loncommon::start_page('Construction Space',
+ undef,
+ {'bread_crumbs' => $brcrum,})
.&Apache::loncommon::head_subbox(
&Apache::loncommon::CSTR_pageheader())
.'<p class="LC_error">'
@@ -659,7 +664,7 @@
&Apache::lonhtmlcommon::clear_breadcrumbs();
&Apache::lonhtmlcommon::add_breadcrumb({
text => 'Construction Space',
- href => '', # FIXME Add link to priv/[user]
+ href => &Apache::loncommon::authorspace(),
faq => 6,
bug => 'RAT',
help => 'Sequence_Simple_Editor_Creation',});
@@ -682,7 +687,7 @@
);
}
my $idx=0;
- $r->print('<h1>'.$url.'</h1>');
+ $r->print('<p><span class="LC_filename">'.$url.'</span></p>');
if ($adv) {
$r->print('<p class="LC_warning">'
.&mt('Map contents are not shown in order.')
Index: rat/lonratmenu.pm
diff -u rat/lonratmenu.pm:1.13 rat/lonratmenu.pm:1.14
--- rat/lonratmenu.pm:1.13 Wed Jun 3 17:13:26 2009
+++ rat/lonratmenu.pm Tue Jun 9 15:01:28 2009
@@ -2,7 +2,7 @@
# Build menu bar for Advanced RAT. Uses javascript code originally in
# static file: rat/client/code.html, now in rat/client/ratcode.js
#
-# $Id: lonratmenu.pm,v 1.13 2009/06/03 17:13:26 bisitz Exp $
+# $Id: lonratmenu.pm,v 1.14 2009/06/09 15:01:28 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -41,9 +41,16 @@
$r->send_http_header('text/html');
my $js = join('',<$jsh>);
my %loaditem = ('onunload' => "leave();",);
+ my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
+ 'text' => 'Construction Space'},
+ {'href' => '',
+ 'text' => 'RAT'},
+ {'href' => '',
+ 'text' => 'Advanced Editor'}];
+
$r->print(&Apache::loncommon::start_page('Advanced Editor',$js,
- {'add_entries' => \%loaditem})
- .&Apache::lonhtmlcommon::breadcrumbs() # FIXME add breadcrumbs
+ {'add_entries' => \%loaditem,
+ 'bread_crumbs' => $brcrum,})
.&Apache::loncommon::head_subbox(
&Apache::loncommon::CSTR_pageheader())
);