mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-9628 Added a bit of informational verbose to the hiddenuntil and locktime icons in the grader report.
This commit is contained in:
parent
384960dd68
commit
c30fafbf16
2 changed files with 4 additions and 2 deletions
|
@ -832,7 +832,7 @@ class grade_tree {
|
|||
|
||||
if ($element['type'] != 'category' and $element['object']->get_hidden() > 1) { // Change the icon and add a tooltip showing the date
|
||||
$icon = 'hiddenuntil';
|
||||
$tooltip = userdate($element['object']->get_hidden());
|
||||
$tooltip = get_string('hiddenuntildate', 'grades', userdate($element['object']->get_hidden()));
|
||||
}
|
||||
|
||||
$url = $CFG->wwwroot.'/grade/edit/tree/action.php?id='.$this->courseid.'&action=show&sesskey='.sesskey()
|
||||
|
@ -871,7 +871,7 @@ class grade_tree {
|
|||
|
||||
if ($element['type'] != 'category' and $element['object']->get_locktime() > 1) { // Change the icon and add a tooltip showing the date
|
||||
$icon = 'locktime';
|
||||
$tooltip = userdate($element['object']->get_locktime());
|
||||
$tooltip = get_string('locktimedate', 'grades', userdate($element['object']->get_locktime()));
|
||||
}
|
||||
|
||||
if (!has_capability('moodle/grade:manage', $this->context) and !has_capability('moodle/grade:unlock', $this->context)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue