version 1.32, 2011/10/30 14:59:57
|
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 187 sub handler {
|
Line 191 sub handler {
|
@f2=&get_split_file($fn,'local'); |
@f2=&get_split_file($fn,'local'); |
$r->print('<b>'.&mt('Construction Space Version').'</b>'); |
$r->print('<b>'.&mt('Construction Space Version').'</b>'); |
} else { |
} else { |
my $fn= |
my $fn=$r->dir_config('lonDocRoot')."/res/$cudom/$cuname/"; |
'/home/httpd/html/res/'.$cudom.'/'.$cuname.'/'; |
|
if ($env{'form.versiontwo'}) { |
if ($env{'form.versiontwo'}) { |
my ($main,$suffix,$is_meta)= |
my ($main,$suffix,$is_meta)= |
&Apache::lonretrieve::get_file_info($efn); |
&Apache::lonretrieve::get_file_info($efn); |
Line 230 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; |
} |
} |