| ');
$r->print('Go to ... | ');
- $r->print(''.$version_flag{$filename}.&make_anchor($url,$filename.'/',$current_path.$filename.'/',$env{'form.mode'},$env{"form.fieldname"},$env{'form.continue'}).'/ | ');
+ my %anchor_fields = (
+ 'selectfile' => $filename.'/',
+ 'currentpath' => $current_path.$filename.'/',
+ 'mode' => $env{"form.mode"},
+ 'fieldname' => $env{"form.fieldname"},
+ 'continue' => $env{"form.continue"}
+ );
+ $r->print(''.$version_flag.' | '.&make_anchor($url,\%anchor_fields,$filename.'/').' | ');
$r->print('
');
} else {
my $css_class = 'LC_browser_file';
my $line;
- my $fullpath = $current_path.$filename;
- $fullpath = &prepend_group($fullpath);
if ($select_mode eq 'true') {
$line=''.&mt('Allowing others to retrieve portfolio file: [_1]',
+ $r->print(''.&mt('Allowing others to retrieve file: [_1]',
$port_path.$file_name).'
'."\n");
$file_name = &prepend_group($file_name);
my ($uname,$udom) = &get_name_dom();
@@ -838,12 +914,13 @@ sub update_access {
}
&close_form($r,$url);
} else {
- $r->print('
'.
- &mt('Display all access settings for this file').''.
- ' '.
- ''.&mt('Return to directory listing').'');
+ my %anchor_fields = (
+ 'currentpath' => $env{'form.currentpath'},
+ 'access' => $env{'form.selectfile'}
+ );
+ $r->print('
'.&make_anchor($url, \%anchor_fields, &mt('Display all access settings for this file')));
+ delete $anchor_fields{'access'};
+ $r->print(' '.&make_anchor($url,\%anchor_fields,&mt('Return to directory listing')));
}
return;
}
@@ -1013,24 +1090,24 @@ sub access_setting_table {
$passwd.'" />');
$r->print(&Apache::loncommon::end_data_table_row());
$r->print(&Apache::loncommon::end_data_table());
- $r->print(' |
');
- &access_element($r,'domains',\%acl_count,\@domains,$access_controls,$now,$then);
- $r->print(' | | ');
- &access_element($r,'users',\%acl_count,\@users,$access_controls,$now,$then);
- $r->print(' |
|
');
- if (@courses > 0 || @groups > 0) {
- $r->print('');
- } else {
- $r->print(' | ');
- }
- &access_element($r,'course',\%acl_count,\@courses,$access_controls,$now,$then);
- $r->print(' | ');
- if (@courses > 0 || @groups > 0) {
- $r->print('
|
');
- } else {
- $r->print(' | | ');
- }
- &access_element($r,'group',\%acl_count,\@groups,$access_controls,$now,$then);
+# $r->print(' |
|
');
+# &access_element($r,'domains',\%acl_count,\@domains,$access_controls,$now,$then);
+# $r->print(' | | ');
+# &access_element($r,'users',\%acl_count,\@users,$access_controls,$now,$then);
+# $r->print(' |
|
');
+# if (@courses > 0 || @groups > 0) {
+# $r->print('');
+# } else {
+# $r->print(' | ');
+# }
+# &access_element($r,'course',\%acl_count,\@courses,$access_controls,$now,$then);
+# $r->print(' | ');
+# if (@courses > 0 || @groups > 0) {
+# $r->print('
|
');
+# } else {
+# $r->print(' | | ');
+# }
+# &access_element($r,'group',\%acl_count,\@groups,$access_controls,$now,$then);
$r->print(' |