[LON-CAPA-cvs] cvs: rat / lonratedt.pm

bisitz bisitz@source.lon-capa.org
Mon, 25 May 2009 17:49:43 -0000


bisitz		Mon May 25 17:49:43 2009 EDT

  Modified files:              
    /rat	lonratedt.pm 
  Log:
  RAT Overview, Simple Edit:
  - Added breadcrumbs
  - Added/corrected component help (-> rev. 1.95)
  
  
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.95 rat/lonratedt.pm:1.96
--- rat/lonratedt.pm:1.95	Wed May 20 13:55:40 2009
+++ rat/lonratedt.pm	Mon May 25 17:49:43 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.95 2009/05/20 13:55:40 bisitz Exp $
+# $Id: lonratedt.pm,v 1.96 2009/05/25 17:49:43 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -540,11 +540,24 @@
 </script>
 ENDJS
 
+    &Apache::lonhtmlcommon::clear_breadcrumbs();
+    &Apache::lonhtmlcommon::add_breadcrumb({
+        text  => 'Construction Space',
+        href  => '', # FIXME Add link to priv/[user]
+        faq   => 6,
+        bug   => 'RAT',
+        help  => 'Sequence_Simple_Editor_Creation',});
+    &Apache::lonhtmlcommon::add_breadcrumb({
+        text  => 'RAT',
+        title => 'Resource Assembly Tool',
+        href  => '',});
+    &Apache::lonhtmlcommon::add_breadcrumb({
+        text  => 'Editor',
+        title => 'Simple Editor',
+        href  => '',});
+
     my $start_page = &Apache::loncommon::start_page('Construction Space',$js)
-                    .&Apache::lonhtmlcommon::breadcrumbs(# FIXME add breadcrumbs
-                         &Apache::loncommon::help_open_menu('Sequence_Simple_Editor_Creation',
-                             'Sequence_Simple_Editor_Creation',
-                             6,'RAT'))
+                    .&Apache::lonhtmlcommon::breadcrumbs('')
                     .&Apache::loncommon::head_subbox(
                          &Apache::loncommon::CSTR_pageheader()
                         .&buttons(2));
@@ -642,9 +655,21 @@
 
 sub viewmap {
     my ($r,$url,$adv,$errtext)=@_;
+
+    &Apache::lonhtmlcommon::clear_breadcrumbs();
+    &Apache::lonhtmlcommon::add_breadcrumb({
+        text  => 'Construction Space',
+        href  => '', # FIXME Add link to priv/[user]
+        faq   => 6,
+        bug   => 'RAT',
+        help  => 'Sequence_Simple_Editor_Creation',});
+    &Apache::lonhtmlcommon::add_breadcrumb({
+        text  => 'RAT',
+        title => 'Resource Assembly Tool',
+        href  => '',});
+
     $r->print(&Apache::loncommon::start_page('Edit Content of a Map')
-             .&Apache::lonhtmlcommon::breadcrumbs(# FIXME add breadcrumbs
-                  &Apache::loncommon::help_open_menu('','',6,'RAT')) # FIXME help broken?
+             .&Apache::lonhtmlcommon::breadcrumbs('')
              .&Apache::loncommon::head_subbox(
                   &Apache::loncommon::CSTR_pageheader()
                  .&buttons($adv))