--- loncom/auth/lonroles.pm 2003/12/30 22:45:59 1.81 +++ loncom/auth/lonroles.pm 2004/01/15 20:22:47 1.82 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.81 2003/12/30 22:45:59 www Exp $ +# $Id: lonroles.pm,v 1.82 2004/01/15 20:22:47 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -77,17 +77,6 @@ ENDREDIR return; } -sub authorbombs { - my ($uname,$udom)=@_; - my %bombs=&Apache::lonmsg::all_url_author_res_msg($uname,$udom); - foreach (keys %bombs) { - if ($_=~/^$udom\/$uname\//) { - return ''; - } - } - return ''; -} - sub handler { my $r = shift; @@ -248,8 +237,10 @@ ENDENTERKEY my $swinfo=&Apache::lonmenu::rawconfig(); my $bodytag=&Apache::loncommon::bodytag('User Roles'); - my $helptag=&Apache::loncommon::help_open_topic - ("General_Intro",&mt("Click here for help")); + my $helptag='
'.&Apache::loncommon::help_open_topic + ("General_Intro",&mt("Click here for help")).''. + &Apache::loncommon::help_open_faq(1,&mt('Click here for FAQ')).''. + &Apache::loncommon::help_open_bug('',&mt('Click here to report bugs')).'
'; $r->print(< @@ -428,7 +419,7 @@ ENDHEADER ': '.$tdom.'
'. ' '.&mt('Server').': '.$home; $ENV{'course.'.$tdom.'_'.$trest.'.description'}='ca'; - $tremark.=&authorbombs($trest,$tdom); + $tremark.=&Apache::lonhtmlcommon::authorbombs('/res/'.$tdom.'/'.$trest.'/'); $sortkey=$role."$trest:$tdom"; } elsif ($role eq 'au') { # Authors @@ -448,7 +439,7 @@ ENDHEADER $twhere=&mt('Domain').': '.$tdom.'
'.&mt('Server'). ': '.$home; $ENV{'course.'.$tdom.'_'.$trest.'.description'}='ca'; - $tremark.=&authorbombs($ENV{'user.name'},$tdom); + $tremark.=&Apache::lonhtmlcommon::authorbombs('/res/'.$tdom.'/'.$ENV{'user.name'}.'/'); $sortkey=$role; } elsif ($trest) { $ttype='Course';