--- loncom/interface/lonmsgdisplay.pm 2010/01/25 20:56:40 1.124.4.6
+++ loncom/interface/lonmsgdisplay.pm 2010/01/13 16:39:19 1.140
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines for messaging display
#
-# $Id: lonmsgdisplay.pm,v 1.124.4.6 2010/01/25 20:56:40 raeburn Exp $
+# $Id: lonmsgdisplay.pm,v 1.140 2010/01/13 16:39:19 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -113,8 +113,8 @@ use lib '/home/httpd/lib/perl/';
use LONCAPA;
# Querystring component with sorting type
-my $sqs;
-my $startdis;
+my $sqs='';
+my $startdis='';
# ============================================================ List all folders
@@ -295,14 +295,26 @@ 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
@@ -525,20 +537,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 .= '