--- loncom/publisher/londiff.pm 2011/12/23 14:54:26 1.34 +++ loncom/publisher/londiff.pm 2012/04/18 20:14:35 1.35 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to show differences between file versions # -# $Id: londiff.pm,v 1.34 2011/12/23 14:54:26 www Exp $ +# $Id: londiff.pm,v 1.35 2012/04/18 20:14:35 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -141,15 +141,19 @@ sub handler { ' '.$efn.''); if (($cuname ne $env{'user.name'}) || ($cudom ne $env{'user.domain'})) { - $r->print('

' - .&mt('Co-Author [_1]' - ,&Apache::loncommon::plainname($cuname,$cudom) - .' ('.$cuname.':'.$cudom.')') - .'

' - ); + my $nameshown = &Apache::loncommon::plainname($cuname,$cudom). + ' ('.$cuname.':'.$cudom.')'; + $r->print('

'); + if ($env{'request.role'} =~ /^ca\./) { + $r->print(&mt('Co-Author in Construction Space for: [_1]',$nameshown)); + } elsif ($env{'request.role'} =~ /^aa\./) { + $r->print(&mt('Assistant Author in Construction Space for: [_1]',$nameshown)); + } else { + $r->print(&mt('Resource Author is: [_1]',$nameshown)); + } + $r->print('

'); } - if (&Apache::loncommon::fileembstyle(($efn=~/\.(\w+)$/)) eq 'ssi' || $efn =~ /\.meta$/) { $r->print('

');