Permalink
Browse files

MDL-34887: Add hyperlinks to names in the Assignment's grading table

  • Loading branch information...
1 parent b747690 commit 8c74ab8623ee264b3013de88cea39be8de31ae02 Raymond Wijaya committed with danpoltawski Aug 17, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/assign/gradingtable.php
@@ -287,13 +287,15 @@ function col_picture(stdClass $row) {
}
/**
- * Format a user record for display (don't link to profile)
+ * Format a user record for display (link to profile)
*
* @param stdClass $row
* @return string
*/
function col_fullname($row) {
- return fullname($row);
+ $courseid = $this->assignment->get_course()->id;
+ $link= new moodle_url('/user/view.php', array('id' =>$row->id, 'course'=>$courseid));
+ return $this->output->action_link($link, fullname($row));
}
/**

0 comments on commit 8c74ab8

Please sign in to comment.