Skip to content

Commit

Permalink
MDL-10479 Done, but would be nice to middle-align the user names vert…
Browse files Browse the repository at this point in the history
…ically.
  • Loading branch information
nicolasconnault committed Jul 18, 2007
1 parent 025bc8d commit e7536c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion grade/report/grader/lib.php
Expand Up @@ -569,6 +569,7 @@ function get_studentshtml() {
$strfeedback = $this->get_lang_string("feedback");
$gradetabindex = 1;
$feedbacktabindex = 16380; // The maximum number of tabindices on 1 page is 32767
$showuserimage = $this->get_pref('showuserimage');

// Preload scale objects for items with a scaleid
$scales_list = '';
Expand All @@ -586,8 +587,14 @@ function get_studentshtml() {

foreach ($this->users as $userid => $user) {
// Student name and link
$studentshtml .= '<tr><th class="user"><a href="' . $CFG->wwwroot . '/user/view.php?id='
$user_pic = null;
if ($showuserimage) {
$user_pic = '<div class="userpic">' . print_user_picture($user->id, $this->courseid, true, 0, true) . '</div>';
}

$studentshtml .= '<tr><th class="user">' . $user_pic . '<a href="' . $CFG->wwwroot . '/user/view.php?id='
. $user->id . '">' . fullname($user) . '</a></th>';

foreach ($this->items as $item) {
// Get the decimal points preference for this item
$decimalpoints = $this->get_pref('decimalpoints', $item->id);
Expand Down
5 changes: 4 additions & 1 deletion theme/standard/styles_layout.css
Expand Up @@ -2123,7 +2123,10 @@ body#doc-contents ul {
border-style:solid;
}


#grade-report .userpic {
display: inline;
margin-right: 10px;
}
/* gradebook edit tree */

#grade-edit-edit_tree .gradetreebox {
Expand Down

0 comments on commit e7536c9

Please sign in to comment.