--- loncom/publisher/lonrights.pm 2010/01/27 16:18:17 1.25.2.1 +++ loncom/publisher/lonrights.pm 2009/05/26 11:21:47 1.26 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to show and edit custom distribution rights # -# $Id: lonrights.pm,v 1.25.2.1 2010/01/27 16:18:17 raeburn Exp $ +# $Id: lonrights.pm,v 1.26 2009/05/26 11:21:47 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -55,9 +55,24 @@ sub handler { &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; + # Breadcrumbs + &Apache::lonhtmlcommon::clear_breadcrumbs(); + &Apache::lonhtmlcommon::add_breadcrumb({ + 'text' => 'Construction Space', + 'href' => '', # FIXME Add link to /priv/[user] + }); + &Apache::lonhtmlcommon::add_breadcrumb({ + 'text' => 'Custom Rights Editor', + 'title' => 'Custom Distribution Rights Editor', + 'href' => '',}); + my $js = &Apache::loncommon::coursebrowser_javascript(). &Apache::loncommon::studentbrowser_javascript(); - $r->print(&Apache::loncommon::start_page('Custom Distribution Rights',$js)); + $r->print(&Apache::loncommon::start_page('Custom Distribution Rights',$js) + .&Apache::lonhtmlcommon::breadcrumbs() + .&Apache::loncommon::head_subbox( + &Apache::loncommon::CSTR_pageheader()) + ); $r->rflush(); my $uri=$r->uri; @@ -196,7 +211,7 @@ sub handler { if ($constructmode) { $r->print(&Apache::loncommon::select_form('','action_0', ('' => '', - 'insertbelow' => &mt('Insert rule below')))); + 'insertbelow' => 'Insert rule below'))); } else { $r->print(' '); @@ -205,7 +220,6 @@ sub handler { if ($constructmode) { $r->print(&Apache::loncommon::select_form ($token->[2]->{'effect'},'effect_0', - &Apache::lonlocal::texthash ('allow' => 'allow', 'deny' => 'deny'))); } else { @@ -228,7 +242,6 @@ sub handler { if ($constructmode) { $r->print(&Apache::loncommon::select_form( '','action_'.$rulecounter, - &Apache::lonlocal::texthash ('' => '', 'delete' => 'Delete this rule', 'insertabove' => 'Insert rule above', @@ -243,7 +256,6 @@ sub handler { $r->print(&Apache::loncommon::select_form ($token->[2]->{'effect'}, 'effect_'.$rulecounter, - &Apache::lonlocal::texthash ('allow' => 'allow', 'deny' => 'deny'))); } else { @@ -256,7 +268,6 @@ sub handler { if ($constructmode) { $r->print(&Apache::loncommon::select_form($type, 'type_'.$rulecounter, - &Apache::lonlocal::texthash ('course' => 'Course', 'user' => 'User'))); } else {