--- loncom/interface/portfolio.pm 2024/08/19 01:32:58 1.254.2.6.2.2 +++ loncom/interface/portfolio.pm 2024/09/07 01:38:36 1.254.2.6.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.254.2.6.2.2 2024/08/19 01:32:58 raeburn Exp $ +# $Id: portfolio.pm,v 1.254.2.6.2.3 2024/09/07 01:38:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -314,6 +314,18 @@ sub display_directory { &mt('Using the portfolio file list')) .'

' ); + my ($acl_helpfile,$acl_helplink); + if ($can_setacl) { + $acl_helpfile = 'Portfolio ShareFile'; + } elsif ($caller eq 'coursegrp_portfolio') { + $acl_helpfile = 'Portfolio ShareFile Group'; + } + unless ($can_setacl || $can_viewacl) { + $acl_helpfile = 'Portfolio ShareFile Off'; + } + if ($acl_helpfile) { + $acl_helplink = &Apache::loncommon::help_open_topic($acl_helpfile); + } $r->print(&Apache::loncommon::start_data_table() .&Apache::loncommon::start_data_table_header_row() .''.&mt('Actions'). &Apache::loncommon::help_open_topic('Portfolio FileAction').'' @@ -323,7 +335,7 @@ sub display_directory { .''.&mt('Size').'' .''.&mt('Last Modified').'' .' ' - .''.&mt('Current Access Status').&Apache::loncommon::help_open_topic('Portfolio ShareFile').'' + .''.&mt('Current Access Status').$acl_helplink.'' .&Apache::loncommon::end_data_table_header_row()); }