--- loncom/publisher/loncfile.pm 2010/04/13 22:28:42 1.100.2.4
+++ loncom/publisher/loncfile.pm 2009/12/02 09:53:02 1.103
@@ -9,7 +9,7 @@
# and displays a page showing the results of the action.
#
#
-# $Id: loncfile.pm,v 1.100.2.4 2010/04/13 22:28:42 raeburn Exp $
+# $Id: loncfile.pm,v 1.103 2009/12/02 09:53:02 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -690,15 +690,14 @@ sub Copy1 {
$request->print('
'.&mt('Cancel').'');
return;
}
-
- $request->print(
- ''
- .'
' - .&mt('Copy [_1] to [_2]?', - &display($fn), - &display($newfilename)) - .'
' + $request->print( + '' + .'' + .&mt('Copy [_1] to [_2]?', + &display($fn), + &display($newfilename)) + .'
' ); &CloseForm1($request, $fn); } else { @@ -859,7 +858,6 @@ sub NewFile1 { } my @okexts = qw(xml html xhtml htm xhtm problem page sequence rights sty task library js css txt); - if (($extension eq '') || (!grep(/^\Q$extension\E/,@okexts))) { my $validexts = '.'.join(', .',@okexts); $request->print(''. @@ -1073,10 +1071,11 @@ sub Rename2 { unlink $tmp2; } } else { - $request->print('
' - .&mt('No such file: [_1]', - &display($oldfile)) - .'
' + $request->print( + '' + .&mt('No such file: [_1]', + &display($oldfile)) + .'
' ); return 0; } @@ -1450,10 +1449,26 @@ function writeDone() { $loaditem{'onload'} = "writeDone()"; } + # Breadcrumbs + &Apache::lonhtmlcommon::clear_breadcrumbs(); + &Apache::lonhtmlcommon::add_breadcrumb({ + 'text' => 'Construction Space', + 'href' => &Apache::loncommon::authorspace(), + }); + &Apache::lonhtmlcommon::add_breadcrumb({ + 'text' => 'File Operation', + 'title' => 'Construction Space File Operation', + 'href' => '', + }); + $r->print(&Apache::loncommon::start_page('Construction Space File Operation', $js, - {'add_entries' => \%loaditem,})); - + {'add_entries' => \%loaditem,}) + .&Apache::lonhtmlcommon::breadcrumbs() + .&Apache::loncommon::head_subbox( + &Apache::loncommon::CSTR_pageheader()) + ); + $r->print('