From 517a2dbe8449bf95e6e461e1136fa9506e4dd44a Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Wed, 5 Dec 2012 16:37:45 +0800 Subject: [PATCH] MDL-37011 - themes: Fixed the alignment of the edit and help icon on the participants page. --- theme/base/style/user.css | 3 +++ user/index.php | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/theme/base/style/user.css b/theme/base/style/user.css index 32102d32e5a..d4cb500eb03 100644 --- a/theme/base/style/user.css +++ b/theme/base/style/user.css @@ -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;} diff --git a/user/index.php b/user/index.php index 73fe0ee667f..68a1bca991c 100644 --- a/user/index.php +++ b/user/index.php @@ -488,14 +488,15 @@ $heading .= ": $a->number"; if (user_can_assign($context, $roleid)) { - $heading .= ' '; - $heading .= ''; + $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 = ''; }