Diff for /rat/lonratedt.pm between versions 1.107 and 1.108

version 1.107, 2012/12/16 16:10:25 version 1.108, 2013/06/04 22:20:34
Line 548  ENDJS Line 548  ENDJS
   
     &Apache::lonhtmlcommon::clear_breadcrumbs();      &Apache::lonhtmlcommon::clear_breadcrumbs();
     &Apache::lonhtmlcommon::add_breadcrumb({      &Apache::lonhtmlcommon::add_breadcrumb({
         text  => 'Construction Space',          text  => 'Authoring Space',
         href  => &Apache::loncommon::authorspace($url),          href  => &Apache::loncommon::authorspace($url),
         faq   => 6,          faq   => 6,
         bug   => 'RAT',          bug   => 'RAT',
Line 563  ENDJS Line 563  ENDJS
         href  => '',});          href  => '',});
   
     # Breadcrumbs are included by &start_page      # Breadcrumbs are included by &start_page
     my $start_page = &Apache::loncommon::start_page('Construction Space',$js)      my $start_page = &Apache::loncommon::start_page('Authoring Space',$js)
                     .&Apache::loncommon::head_subbox(                      .&Apache::loncommon::head_subbox(
                          &Apache::loncommon::CSTR_pageheader()                           &Apache::loncommon::CSTR_pageheader()
                         .&buttons(2));                          .&buttons(2));
Line 649  sub nodir { Line 649  sub nodir {
    my ($path) = ($dir =~ m{^\Q$londocroot\E?(/priv/[^/]+/[^/]+/)});     my ($path) = ($dir =~ m{^\Q$londocroot\E?(/priv/[^/]+/[^/]+/)});
    $dir=~s{^\Q$londocroot/priv/\E[^/]+/[^/]+}{};     $dir=~s{^\Q$londocroot/priv/\E[^/]+/[^/]+}{};
    my $brcrum = [{'href' => &Apache::loncommon::authorspace($path),     my $brcrum = [{'href' => &Apache::loncommon::authorspace($path),
                   'text' => 'Construction Space'}];                    'text' => 'Authoring Space'}];
 #                 {'href' => '',  #                 {'href' => '',
 #                  'text' => 'No such directory'}];  #                  'text' => 'No such directory'}];
    $r->print(&Apache::loncommon::start_page('Construction Space',     $r->print(&Apache::loncommon::start_page('Authoring Space',
                                             undef,                                              undef,
                                             {'bread_crumbs' => $brcrum,})                                              {'bread_crumbs' => $brcrum,})
             .&Apache::loncommon::head_subbox(              .&Apache::loncommon::head_subbox(
Line 671  sub viewmap { Line 671  sub viewmap {
   
     &Apache::lonhtmlcommon::clear_breadcrumbs();      &Apache::lonhtmlcommon::clear_breadcrumbs();
     &Apache::lonhtmlcommon::add_breadcrumb({      &Apache::lonhtmlcommon::add_breadcrumb({
         text  => 'Construction Space',          text  => 'Authoring Space',
         href  => &Apache::loncommon::authorspace($url),          href  => &Apache::loncommon::authorspace($url),
         faq   => 6,          faq   => 6,
         bug   => 'RAT',          bug   => 'RAT',
Line 708  sub viewmap { Line 708  sub viewmap {
              .'<th>'.&mt('Title in map').'</th>'               .'<th>'.&mt('Title in map').'</th>'
              .'<th>'.&mt('Filename of resource').'</th>'               .'<th>'.&mt('Filename of resource').'</th>'
              .'<th>'.&mt('Link to published resource').'</th>'               .'<th>'.&mt('Link to published resource').'</th>'
              .'<th>'.&mt('Link to resource in Construction Space').'</th>'               .'<th>'.&mt('Link to resource in Authoring Space').'</th>'
              .&Apache::loncommon::end_data_table_header_row()               .&Apache::loncommon::end_data_table_header_row()
     );      );
     foreach (&LONCAPA::map::attemptread(&Apache::lonnet::filelocation('',$url))) {      foreach (&LONCAPA::map::attemptread(&Apache::lonnet::filelocation('',$url))) {
Line 746  sub viewmap { Line 746  sub viewmap {
             $r->print('</td><td>');              $r->print('</td><td>');
             if ($url) {              if ($url) {
                $r->print('<a href="'.$cstrurl.'">'.                 $r->print('<a href="'.$cstrurl.'">'.
                          &mt('Construction space').'</a>');                           &mt('Authoring space').'</a>');
             } else {              } else {
                 $r->print('&nbsp;');                  $r->print('&nbsp;');
             }              }

Removed from v.1.107  
changed lines
  Added in v.1.108


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>