From: nicolasconnault Date: Wed, 18 Jul 2007 03:34:55 +0000 (+0000) Subject: MDL-10479 Done, but would be nice to middle-align the user names vertically. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e7536c9222f1ec8abdcca109f1938b6a0ead37d4;p=moodle.git MDL-10479 Done, but would be nice to middle-align the user names vertically. --- diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index cadca1b19f..4356967d11 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -569,6 +569,7 @@ class grade_report_grader extends grade_report { $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 = ''; @@ -586,8 +587,14 @@ class grade_report_grader extends grade_report { foreach ($this->users as $userid => $user) { // Student name and link - $studentshtml .= '' . print_user_picture($user->id, $this->courseid, true, 0, true) . ''; + } + + $studentshtml .= '' . $user_pic . '' . fullname($user) . ''; + foreach ($this->items as $item) { // Get the decimal points preference for this item $decimalpoints = $this->get_pref('decimalpoints', $item->id); diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index db0d45a39b..3d61d12428 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -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 {