mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Merged link to role assign screen from 1.9
This commit is contained in:
parent
c6edfab4d4
commit
15234a92a1
@ -515,10 +515,16 @@
|
||||
}
|
||||
print_heading($heading, 'center', 3);
|
||||
} else {
|
||||
if ($matchcount < $totalcount) {
|
||||
print_heading(get_string('allparticipants').': '.$matchcount.'/'.$totalcount, '', 3);
|
||||
if ($course->id !== SITEID && has_capability('moodle/role:assign', $context)) {
|
||||
$editlink = ' <a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id.'">';
|
||||
$editlink .= '<img src="'.$CFG->pixpath.'/i/edit.gif" class="icon" alt="" /></a>';
|
||||
} else {
|
||||
print_heading(get_string('allparticipants').': '.$matchcount, '', 3);
|
||||
$editlink = '';
|
||||
}
|
||||
if ($matchcount < $totalcount) {
|
||||
print_heading(get_string('allparticipants').': '.$matchcount.'/'.$totalcount . $editlink, '', 3);
|
||||
} else {
|
||||
print_heading(get_string('allparticipants').': '.$matchcount . $editlink, '', 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user