mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-68343 gradereport_singleview: fix empty links
This commit is contained in:
parent
1031303a54
commit
4e9b0c4278
@ -1791,8 +1791,9 @@ class grade_structure {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $OUTPUT->action_icon($url, new pix_icon('t/preview',
|
||||
get_string('gradeanalysis', 'core_grades')));
|
||||
$title = get_string('gradeanalysis', 'core_grades');
|
||||
return $OUTPUT->action_icon($url, new pix_icon('t/preview', ''), null,
|
||||
['title' => $title, 'aria-label' => $title]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,8 @@ class grade extends tablelike implements selectable_items, filterable_items {
|
||||
$grade->label = $fullname;
|
||||
|
||||
$line = array(
|
||||
$OUTPUT->action_icon($this->format_link('user', $item->id), new pix_icon('t/editstring', $iconstring)),
|
||||
$OUTPUT->action_icon($this->format_link('user', $item->id), new pix_icon('t/editstring', ''), null,
|
||||
['title' => $iconstring, 'aria-label' => $iconstring]),
|
||||
$OUTPUT->user_picture($item, array('visibletoscreenreaders' => false)) .
|
||||
html_writer::link($url, $fullname),
|
||||
$this->item_range()
|
||||
|
@ -190,7 +190,8 @@ class user extends tablelike implements selectable_items {
|
||||
$grade->label = $item->get_name();
|
||||
|
||||
$line = array(
|
||||
$OUTPUT->action_icon($this->format_link('grade', $item->id), new pix_icon('t/editstring', $iconstring)),
|
||||
$OUTPUT->action_icon($this->format_link('grade', $item->id), new pix_icon('t/editstring', ''), null,
|
||||
['title' => $iconstring, 'aria-label' => $iconstring]),
|
||||
$this->format_icon($item) . $lockicon . $itemlabel,
|
||||
$this->category($item),
|
||||
new range($item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user