--- loncom/interface/loncreateuser.pm 2009/04/05 17:04:56 1.289 +++ loncom/interface/loncreateuser.pm 2009/04/06 14:52:04 1.290 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.289 2009/04/05 17:04:56 droeschl Exp $ +# $Id: loncreateuser.pm,v 1.290 2009/04/06 14:52:04 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1230,8 +1230,17 @@ sub display_existing_roles { } } if ($rolesdisplay == 1) { + my $contextrole=''; + if ($env{'request.course.id'}) { + $contextrole = 'Existing Roles in this Course'; + } elsif ($env{'request.role'} =~ /^au\./) { + $contextrole = 'Existing Co-Author Roles in your Construction Space'; + } else { + $contextrole = 'Existing Roles in this Domain'; + } $r->print('

'.$lt{'rer'}.'

'. +'
'.&mt($contextrole).'
'. &Apache::loncommon::start_data_table("LC_createuser"). &Apache::loncommon::start_data_table_header_row(). ''.$lt{'rev'}.''.$lt{'ren'}.''.$lt{'del'}.