Browse files

MDL-36012: Assignment, Accessibility - Add user information to alt te…

…xt for grade icon in grading table.
  • Loading branch information...
1 parent d937f59 commit 37eb2caa406749cc87f1502719e295be4e13a531 Damyon Wiese committed Nov 21, 2012
Showing with 6 additions and 1 deletion.
  1. +5 −1 mod/assign/gradingtable.php
  2. +1 −0 mod/assign/lang/en/assign.php
View
6 mod/assign/gradingtable.php
@@ -585,7 +585,11 @@ function col_grade(stdClass $row) {
$gradingdisabled = $this->assignment->grading_disabled($row->id);
if (!$this->is_downloading()) {
- $icon = $this->output->pix_icon('gradefeedback', get_string('grade'), 'mod_assign');
+ $name = fullname($row);
+ if ($this->assignment->is_blind_marking()) {
+ $name = get_string('hiddenuser', 'assign') . $this->assignment->get_uniqueid_for_user($row->userid);
+ }
+ $icon = $this->output->pix_icon('gradefeedback', get_string('gradeuser', 'assign', $name), 'mod_assign');
$url = new moodle_url('/mod/assign/view.php',
array('id' => $this->assignment->get_course_module()->id,
'rownum'=>$this->rownum,'action'=>'grade'));
View
1 mod/assign/lang/en/assign.php
@@ -119,6 +119,7 @@
for <i>\'{$a->assignment}\' at {$a->timeupdated}</i><br /><br />
It is <a href="{$a->url}">available on the web site</a>.';
$string['gradersubmissionupdatedsmall'] = '{$a->username} has updated their submission for assignment {$a->assignment}.';
+$string['gradeuser'] = 'Grade {$a}';
$string['grantextension'] = 'Grant extension';
$string['grantextensionforusers'] = 'Grant extension for {$a} students';
$string['enabled'] = 'Enabled';

0 comments on commit 37eb2ca

Please sign in to comment.