Skip to content

Commit

Permalink
MDL-37011 - themes: Fixed the alignment of the edit and help icon on …
Browse files Browse the repository at this point in the history
…the participants page.
  • Loading branch information
abgreeve authored and Sam Hemelryk committed Dec 10, 2012
1 parent a5ff28c commit 517a2db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions theme/base/style/user.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;}
Expand Down
7 changes: 4 additions & 3 deletions user/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}
Expand Down

0 comments on commit 517a2db

Please sign in to comment.