From 03f191ad65c3d61fc0862c078e06931eb3420bb7 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 4 Sep 2004 13:51:19 +0000 Subject: [PATCH] added little edit icons on participants list, see bug 1896 --- user/index.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/user/index.php b/user/index.php index dec2266489..270d98e23b 100644 --- a/user/index.php +++ b/user/index.php @@ -72,7 +72,12 @@ // do not have to be shown as users as well. Only relevant on site course. if ($showteachers) { if ($teachers = get_course_teachers($course->id)) { - echo "

$course->teachers

"; + echo "

$course->teachers"; + if (isadmin() or ($course->category and (iscreator() or ($isteacheredit and !empty($CFG->teacherassignteachers))))) { + echo ' '; + echo ''; + } + echo '

'; if($compactmode) { $exceptions .= implode(',', array_keys($teachers)); print_user_table($teachers, $isteacher); @@ -119,7 +124,12 @@ } } - echo "

$totalcount $course->students

"; + echo "

$totalcount $course->students"; + if (isteacheredit($course->id)) { + echo ' '; + echo ''; + } + echo '

'; if (($CFG->longtimenosee < 500) and (!$page) and ($sort == "lastaccess")) { echo "

("; -- 2.39.5