mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
MDL-37011 - themes: Fixed the alignment of the edit and help icon on the participants page.
This commit is contained in:
parent
4bd6f71bad
commit
5cc0c73ab2
@ -7,8 +7,11 @@
|
||||
|
||||
.user-box {margin:8px;width:115px;height:160px;text-align:center;float:left;clear: none;}
|
||||
|
||||
.userlist .main .action-icon img {vertical-align: middle;}
|
||||
|
||||
.userlist #showall {margin: 10px 0px;}
|
||||
.userlist .buttons {text-align: center;}
|
||||
.userlist .buttons label {padding: 0 3px;}
|
||||
.userlist table#participants {text-align:center;}
|
||||
.userlist table#participants td,
|
||||
.userlist table#participants th {vertical-align: middle;text-align: left;padding: 4px;}
|
||||
|
@ -488,14 +488,15 @@
|
||||
$heading .= ": $a->number";
|
||||
|
||||
if (user_can_assign($context, $roleid)) {
|
||||
$heading .= ' <a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?roleid='.$roleid.'&contextid='.$context->id.'">';
|
||||
$heading .= '<img src="'.$OUTPUT->pix_url('i/edit') . '" class="icon" alt="" /></a>';
|
||||
$headingurl = new moodle_url($CFG->wwwroot . '/' . $CFG->admin . '/roles/assign.php',
|
||||
array('roleid' => $roleid, 'contextid' => $context->id));
|
||||
$heading .= $OUTPUT->action_icon($headingurl, new pix_icon('t/edit', get_string('edit')));
|
||||
}
|
||||
echo $OUTPUT->heading($heading, 3);
|
||||
} else {
|
||||
if ($course->id != SITEID && has_capability('moodle/course:enrolreview', $context)) {
|
||||
$editlink = $OUTPUT->action_icon(new moodle_url('/enrol/users.php', array('id' => $course->id)),
|
||||
new pix_icon('i/edit', get_string('edit')));
|
||||
new pix_icon('t/edit', get_string('edit')));
|
||||
} else {
|
||||
$editlink = '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user