mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-47610 gradebook: Show extra credit icon in grades column
This commit is contained in:
parent
8f06fffbe1
commit
3712ee3ed0
@ -427,11 +427,6 @@ class grade_edit_tree {
|
||||
);
|
||||
|
||||
$str .= $checkboxlbl . $checkbox . $hiddenlabel . $input;
|
||||
|
||||
if ($item->aggregationcoef > 0) {
|
||||
$str .= ' ' . html_writer::tag('abbr', get_string('aggregationcoefextrasumabbr', 'grades'),
|
||||
array('title' => get_string('aggregationcoefextrasum', 'grades')));
|
||||
}
|
||||
}
|
||||
|
||||
return $str;
|
||||
@ -771,6 +766,11 @@ class grade_edit_tree_column_range extends grade_edit_tree_column {
|
||||
$grademax = format_float($item->grademax, $item->get_decimals());
|
||||
}
|
||||
|
||||
if ($item->aggregationcoef > 0 && $parent_cat->is_extracredit_used()) {
|
||||
$grademax .= ' ' . html_writer::tag('abbr', get_string('aggregationcoefextrasumabbr', 'grades'),
|
||||
array('title' => get_string('aggregationcoefextrasum', 'grades')));
|
||||
}
|
||||
|
||||
$itemcell = parent::get_item_cell($item, $params);
|
||||
$itemcell->text = $grademax;
|
||||
return $itemcell;
|
||||
|
Loading…
x
Reference in New Issue
Block a user