[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm
raeburn
raeburn at source.lon-capa.org
Wed Apr 15 20:28:04 EDT 2020
raeburn Thu Apr 16 00:28:04 2020 EDT
Modified files:
/loncom/interface loncreateuser.pm
Log:
- Include name of user in access logs display when no records were found.
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.452 loncom/interface/loncreateuser.pm:1.453
--- loncom/interface/loncreateuser.pm:1.452 Tue Aug 27 14:42:57 2019
+++ loncom/interface/loncreateuser.pm Thu Apr 16 00:28:04 2020
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.452 2019/08/27 14:42:57 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.453 2020/04/16 00:28:04 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -7147,9 +7147,10 @@
my ($nav_script,$nav_links);
# table header
- my $tableheader = '<h3>'.
+ my $heading = '<h3>'.
&mt('User access logs for: [_1]',
- &Apache::loncommon::aboutmewrapper(&Apache::loncommon::plainname($uname,$udom),$uname,$udom)).'</h3>'
+ &Apache::loncommon::aboutmewrapper(&Apache::loncommon::plainname($uname,$udom),$uname,$udom)).'</h3>';
+ my $tableheader = $heading
.&Apache::loncommon::start_data_table_header_row()
.'<th> </th>'
.'<th>'.&mt('When').'</th>'
@@ -7267,7 +7268,7 @@
$r->print(&Apache::loncommon::end_data_table().
&userlogdisplay_navlinks(\%curr,$more_records));
} else { # No content displayed above
- $r->print('<p class="LC_info">'
+ $r->print($heading.'<p class="LC_info">'
.&mt('There are no records to display.')
.'</p>');
}
More information about the LON-CAPA-cvs
mailing list