Permalink
Browse files

Merged from STABLE.

  • Loading branch information...
nfreear
nfreear committed May 16, 2006
1 parent 42c4e61 commit 5fc835a5334d7d16a390f3f4c64f4dc55f8d1f4d
Showing with 11 additions and 8 deletions.
  1. +11 −8 course/lib.php
View
@@ -784,7 +784,7 @@ function print_recent_activity($course) {
echo '<a href="'.$CFG->wwwroot.'/course/recent.php?id='.$course->id.'">'.get_string('recentactivityreport').'</a>';
- echo '</div>';
+ echo "</div>\n";
// Firstly, have there been any new enrolments?
@@ -794,18 +794,21 @@ function print_recent_activity($course) {
$users = get_recent_enrolments($course->id, $timestart);
+ //Accessibility: new users now appear in an <OL> list.
if ($users) {
echo '<div class="newusers">';
+ if (! $heading) {
+ print_headline(get_string("newusers").':', 3);
+ $heading = true;
+ $content = true;
+ }
+ echo "<ol class=\"list\">\n";
foreach ($users as $user) {
- if (! $heading) {
- print_headline(get_string("newusers").':', 3);
- $heading = true;
- $content = true;
- }
+
$fullname = fullname($user, $isteacher);
- echo '<span class="name"><a href="'.$CFG->wwwroot."/user/view.php?id=$user->id&amp;course=$course->id\">$fullname</a></span><br />";
+ echo '<li class="name"><a href="'.$CFG->wwwroot."/user/view.php?id=$user->id&amp;course=$course->id\">$fullname</a></li>\n";
}
- echo '</div>';
+ echo "</ol>\n</div>\n";
}
// Next, have there been any modifications to the course structure?

0 comments on commit 5fc835a

Please sign in to comment.