--- loncom/publisher/lonrights.pm 2009/05/26 11:21:47 1.26 +++ loncom/publisher/lonrights.pm 2013/06/04 22:20:16 1.35 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to show and edit custom distribution rights # -# $Id: lonrights.pm,v 1.26 2009/05/26 11:21:47 bisitz Exp $ +# $Id: lonrights.pm,v 1.35 2013/06/04 22:20:16 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -58,8 +58,8 @@ sub handler { # Breadcrumbs &Apache::lonhtmlcommon::clear_breadcrumbs(); &Apache::lonhtmlcommon::add_breadcrumb({ - 'text' => 'Construction Space', - 'href' => '', # FIXME Add link to /priv/[user] + 'text' => 'Authoring Space', + 'href' => &Apache::loncommon::authorspace($r->uri), }); &Apache::lonhtmlcommon::add_breadcrumb({ 'text' => 'Custom Rights Editor', @@ -68,8 +68,8 @@ sub handler { my $js = &Apache::loncommon::coursebrowser_javascript(). &Apache::loncommon::studentbrowser_javascript(); + # Breadcrumbs are included by &start_page $r->print(&Apache::loncommon::start_page('Custom Distribution Rights',$js) - .&Apache::lonhtmlcommon::breadcrumbs() .&Apache::loncommon::head_subbox( &Apache::loncommon::CSTR_pageheader()) ); @@ -78,7 +78,7 @@ sub handler { my $uri=$r->uri; my $fn=&Apache::lonnet::filelocation('',$uri); my $contents=''; - my $constructmode=($uri=~/^\/\~/); + my $constructmode=($uri=~ m{^/priv/}); # ============================================================ Modify and store if ($constructmode && $env{'form.store'}) { @@ -180,7 +180,7 @@ sub handler { $contents=join('',<$fh>); $fh->close(); } - $r->print('