--- rat/lonratedt.pm 2009/05/25 17:49:43 1.96 +++ rat/lonratedt.pm 2009/12/04 11:13:58 1.98 @@ -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.98 2009/12/04 11:13:58 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -78,15 +78,25 @@ sub buttons { my $adv=shift; my $output='
'; if ($adv==1) { - $output.=''. - &Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); + $output.= + '' + .&Apache::loncommon::help_open_topic( + 'Sequence_Advanced_Editor_Creation'); } else { unless ($adv==2) { - $output.=''. - &Apache::loncommon::help_open_topic('Sequence_Simple_Editor_Creation'); + $output.= + '' + .&Apache::loncommon::help_open_topic( + 'Sequence_Simple_Editor_Creation') + .' '; } - $output.=''. - &Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); + $output.= + '' + .&Apache::loncommon::help_open_topic( + 'Sequence_Advanced_Editor_Creation'); } return $output.'
'; } @@ -543,7 +553,7 @@ ENDJS &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',}); @@ -556,8 +566,8 @@ ENDJS title => 'Simple Editor', href => '',}); + # Breadcrumbs are included by &start_page my $start_page = &Apache::loncommon::start_page('Construction Space',$js) - .&Apache::lonhtmlcommon::breadcrumbs('') .&Apache::loncommon::head_subbox( &Apache::loncommon::CSTR_pageheader() .&buttons(2)); @@ -640,8 +650,13 @@ ENDSMPHEAD 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()) .'

' @@ -659,7 +674,7 @@ sub viewmap { &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',}); @@ -668,8 +683,8 @@ sub viewmap { title => 'Resource Assembly Tool', href => '',}); + # Breadcrumbs are included by &start_page $r->print(&Apache::loncommon::start_page('Edit Content of a Map') - .&Apache::lonhtmlcommon::breadcrumbs('') .&Apache::loncommon::head_subbox( &Apache::loncommon::CSTR_pageheader() .&buttons($adv)) @@ -682,7 +697,7 @@ sub viewmap { ); } my $idx=0; - $r->print('

'.$url.'

'); + $r->print('

'.$url.'

'); if ($adv) { $r->print('

' .&mt('Map contents are not shown in order.')