Skip to content

Commit

Permalink
added little edit icons on participants list, see bug 1896
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Sep 4, 2004
1 parent 000a463 commit 03f191a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions user/index.php
Expand Up @@ -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 "<h2 align=\"center\">$course->teachers</h2>";
echo "<h2 align=\"center\">$course->teachers";
if (isadmin() or ($course->category and (iscreator() or ($isteacheredit and !empty($CFG->teacherassignteachers))))) {
echo ' <a href="../course/teacher.php?id='.$course->id.'">';
echo '<img src="'.$CFG->pixpath.'/i/edit.gif" height="16" width="16" alt=""></a>';
}
echo '</h2>';
if($compactmode) {
$exceptions .= implode(',', array_keys($teachers));
print_user_table($teachers, $isteacher);
Expand Down Expand Up @@ -119,7 +124,12 @@
}
}

echo "<h2 align=center>$totalcount $course->students</h2>";
echo "<h2 align=center>$totalcount $course->students";
if (isteacheredit($course->id)) {
echo ' <a href="../course/student.php?id='.$course->id.'">';
echo '<img src="'.$CFG->pixpath.'/i/edit.gif" height="16" width="16" alt=""></a>';
}
echo '</h2>';

if (($CFG->longtimenosee < 500) and (!$page) and ($sort == "lastaccess")) {
echo "<center><p><font size=1>(";
Expand Down

0 comments on commit 03f191a

Please sign in to comment.