version 1.33, 2011/11/07 18:28:28
|
version 1.35, 2012/04/18 20:14:35
|
Line 141 sub handler {
|
Line 141 sub handler {
|
' <span class="LC_filename">'.$efn.'</span>'); |
' <span class="LC_filename">'.$efn.'</span>'); |
|
|
if (($cuname ne $env{'user.name'}) || ($cudom ne $env{'user.domain'})) { |
if (($cuname ne $env{'user.name'}) || ($cudom ne $env{'user.domain'})) { |
$r->print('<p><span class="LC_info">' |
my $nameshown = &Apache::loncommon::plainname($cuname,$cudom). |
.&mt('Co-Author [_1]' |
' ('.$cuname.':'.$cudom.')'; |
,&Apache::loncommon::plainname($cuname,$cudom) |
$r->print('<p><span class="LC_info">'); |
.' ('.$cuname.':'.$cudom.')') |
if ($env{'request.role'} =~ /^ca\./) { |
.'</span></p>' |
$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('</span></p>'); |
} |
} |
|
|
|
|
if (&Apache::loncommon::fileembstyle(($efn=~/\.(\w+)$/)) eq 'ssi' |
if (&Apache::loncommon::fileembstyle(($efn=~/\.(\w+)$/)) eq 'ssi' |
|| $efn =~ /\.meta$/) { |
|| $efn =~ /\.meta$/) { |
$r->print('<p><span class="LC_diff_removed">'); |
$r->print('<p><span class="LC_diff_removed">'); |
Line 229 sub handler {
|
Line 233 sub handler {
|
} else { |
} else { |
$r->print('<h1><span class="LC_warning">'.&mt('Binary File').'</span></h1>'); |
$r->print('<h1><span class="LC_warning">'.&mt('Binary File').'</span></h1>'); |
} |
} |
$r->print('<center><a href="javascript:window.close();">'.&mt('Close This Window').'</a></center>'); |
|
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
return OK; |
return OK; |
} |
} |