-
-
+ '."\n".
+
+'."\n".
''.
''.
($folder=~/^critical/?'':'');
@@ -295,14 +296,27 @@ sub scrollbuttons {
} else {
$status = $statushash{$msgstatus};
}
- return
- ''.&mt('Page').': '.
- ''.
- ''.
- ' of '.$maxdis.
- ''.
- ' '.
- &mt('[_1] messages: showing messages [_2] through [_3] of [_4].',$status,$first,$finish,$total).'';
+ my $output = ''.&mt('Page:').' ';
+ if ($maxdis == 1) {
+ # No buttons if only one page is displayed
+ $output .= '1/1';
+ } else {
+ $output .=
+ ''.
+ ''.
+ ' / '.$maxdis.' '.
+ ''.
+ '';
+ }
+ $output .=
+ ''
+ .''.&mt($status.' messages:').' '
+ .&mt('showing messages [_1] through [_2] of [_3].',
+ $first,$finish,$total)
+ .' '
+ .'';
+
+ return $output;
}
# =============================================================== Status Change
@@ -369,7 +383,7 @@ sub deletefolder {
my ($folder)=@_;
my %permfolders = &get_permanent_folders();
if (defined($permfolders{$folder})) {
- return &mt('The folder "[_1]" may not be deleted',$folder);
+ return &mt('The folder "[_1]" may not be deleted.',$folder);
}
my %userfolders = &Apache::lonmsg::get_user_folders();
if (!defined($userfolders{$folder})) {
@@ -525,20 +539,20 @@ sub discourse {
\%defaultUsers,
1,"selectedusers",1,'email')
) {
- my $bcc_curr_hdr;
- if ($crstype eq 'Community') {
- $bcc_curr_hdr = &mt('Bcc: community participants with current access');
- } else {
- $bcc_curr_hdr = &mt('Bcc: course members with current access');
- }
- $result .= ' ';
- if (ref($statushash) eq 'HASH') {
- $statushash->{'active'} = 1;
- }
+ my $bcc_curr_hdr;
+ if ($crstype eq 'Community') {
+ $bcc_curr_hdr = &mt('Bcc: community participants with current access');
+ } else {
+ $bcc_curr_hdr = &mt('Bcc: course members with current access');
+ }
+ $result .= ' ';
+ if (ref($statushash) eq 'HASH') {
+ $statushash->{'active'} = 1;
+ }
}
if ($tmptext = &Apache::lonselstudent::render_student_list($expired_members,
"previoususers",
@@ -546,20 +560,21 @@ sub discourse {
\%defaultUsers,
1, "selectedusers",0,'email')
) {
- my $bcc_prev_hdr;
- if ($crstype eq 'Community') {
- $bcc_prev_hdr = &mt('Bcc: community participants with expired access');
- } else {
- $bcc_prev_hdr = &mt('Bcc: course members with expired access');
- }
- $result .= ' |