Skip to content

Commit

Permalink
MDL-9628 Added a bit of informational verbose to the hiddenuntil and …
Browse files Browse the repository at this point in the history
…locktime icons in the grader report.
  • Loading branch information
nicolasconnault committed Aug 9, 2007
1 parent 384960d commit c30fafb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grade/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ function get_hiding_icon($element, $gpr) {

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()
Expand Down Expand Up @@ -871,7 +871,7 @@ function get_locking_icon($element, $gpr) {

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)) {
Expand Down
2 changes: 2 additions & 0 deletions lang/en_utf8/grades.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
$string['groupavg'] = 'Group average';
$string['hidden'] = 'Hidden';
$string['hiddenuntil'] = 'Hidden until';
$string['hiddenuntildate'] = 'Hidden until: $a';
$string['hideadvanced'] = 'Hide Advanced Features';
$string['hidecalculations'] = 'Hide calculations';
$string['hidecategory'] = 'Hidden';
Expand Down Expand Up @@ -225,6 +226,7 @@
$string['lock'] = 'Lock';
$string['locked'] = 'Locked';
$string['locktime'] = 'Lock after';
$string['locktimedate'] = 'Locked after: $a';
$string['lowest'] = 'Lowest';
$string['lowgradeletter'] = 'Low';
$string['mapfrom'] = 'Map from';
Expand Down

0 comments on commit c30fafb

Please sign in to comment.