From: nicolasconnault Date: Thu, 20 Mar 2008 06:05:44 +0000 (+0000) Subject: MDL-13880 Overridden and excluded grades are now coloured with alternate row colours... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=902d5cc046879bc3ecb7e667a805f491897c717d;p=moodle.git MDL-13880 Overridden and excluded grades are now coloured with alternate row colours that override the default alternate row colours (gray). I also fixed the long-standing notice about aggregationposition. See attached patch. --- diff --git a/lang/en_utf8/forum.php b/lang/en_utf8/forum.php index a03c82853b..988464c8ab 100644 --- a/lang/en_utf8/forum.php +++ b/lang/en_utf8/forum.php @@ -184,6 +184,8 @@ $string['overviewnumunread'] = 'total unread'; $string['parent'] = 'Show parent'; $string['parentofthispost'] = 'Parent of this post'; $string['postadded'] = '

Your post was successfully added.

You have $a to edit it if you want to make any changes.

'; +$string['postaddedsuccess'] = 'Your post was successfully added.'; +$string['postaddedtimeleft'] = 'You have $a to edit it if you want to make any changes.'; $string['postincontext'] = 'See this post in context'; $string['postmailinfo'] = 'This is a copy of a message posted on the $a website. diff --git a/lib/uploadlib.php b/lib/uploadlib.php index 190058c512..824c174da7 100644 --- a/lib/uploadlib.php +++ b/lib/uploadlib.php @@ -454,7 +454,11 @@ class upload_manager { * @return string */ function get_errors() { - return '

'. $this->notify .'

'; + if (!empty($this->notify)) { + return '

'. $this->notify .'

'; + } else { + return null; + } } } diff --git a/lib/weblib.php b/lib/weblib.php index f71cd49629..1f0f143b5c 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -6123,9 +6123,9 @@ function redirect($url, $message='', $delay=-1) { } else { print_container_end_all(false, $THEME->open_header_containers); } - echo '
'; - echo '
'. $message .'
'; - echo '
( '. get_string('continue') .' )
'; + echo '
'; + echo '
' . $message . '
'; + echo ''; echo '
'; if (!$errorprinted) { diff --git a/mod/forum/post.php b/mod/forum/post.php index e3d727d22b..7d42ba5040 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -536,7 +536,8 @@ $message .= get_string("postmailnow", "forum"); $timemessage = 4; } else { - $message .= '
'.get_string("postadded", "forum", format_time($CFG->maxeditingtime)); + $message .= '

'.get_string("postaddedsuccess", "forum") . '

'; + $message .= '

'.get_string("postaddedtimeleft", "forum", format_time($CFG->maxeditingtime)) . '

'; } if ($forum->type == 'single') { @@ -585,7 +586,8 @@ $message .= get_string("postmailnow", "forum"); $timemessage = 4; } else { - $message .= '
'.get_string("postadded", "forum", format_time($CFG->maxeditingtime)); + $message .= '

'.get_string("postaddedsuccess", "forum") . '

'; + $message .= '

'.get_string("postaddedtimeleft", "forum", format_time($CFG->maxeditingtime)) . '

'; } if ($subscribemessage = forum_post_subscription($discussion)) { diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 44fc065383..4323d13a5c 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -86,6 +86,18 @@ h6.main { visibility: hidden; } +#redirect { + text-align: center; +} + +#redirect #message { + +} + +#redirect #continue { + +} + /* .clearfix {display: inline-table;} */ /* Hides from IE-mac \*/ @@ -4239,4 +4251,4 @@ wikiadminactions { background: #eee; border: 1px dashed #ddd; padding: 3px; -} \ No newline at end of file +}