Permalink
Browse files

MDL-37011 - themes: Fixed the alignment of the edit and help icon on …

…the participants page.
  • Loading branch information...
1 parent a5ff28c commit 517a2dbe8449bf95e6e461e1136fa9506e4dd44a @abgreeve abgreeve committed with Sam Hemelryk Dec 5, 2012
Showing with 7 additions and 3 deletions.
  1. +3 −0 theme/base/style/user.css
  2. +4 −3 user/index.php
@@ -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;}
View
@@ -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.'&amp;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 = '';
}

0 comments on commit 517a2db

Please sign in to comment.