diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php
index 5f5c5b9fa71..e0366d06e5f 100644
--- a/grade/edit/tree/index.php
+++ b/grade/edit/tree/index.php
@@ -160,9 +160,6 @@ echo '';
print_footer($course);
die;
-
-
-
function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedlast=false) {
global $CFG, $COURSE;
@@ -178,15 +175,19 @@ function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedl
$actions = $gtree->get_edit_icon($element, $gpr);
if ($element['type'] == 'item' or ($element['type'] == 'category' and $element['depth'] > 1)) {
- $actions .= '';
- $actions .= '
';
+ $actions .= '
';
+ $actions .= '
';
}
$actions .= $gtree->get_locking_icon($element, $gpr);
$name = $object->get_name();
- //TODO: improve outcome visulisation
+ //TODO: improve outcome visualisation
if ($element['type'] == 'item' and !empty($object->outcomeid)) {
$name = $name.' ('.get_string('outcome', 'grades').')';
}
@@ -203,13 +204,16 @@ function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedl
switch ($element['type']) {
case 'item':
if ($object->itemtype == 'mod') {
- $icon = '
';
+ $icon = '
';
} else if ($object->itemtype == 'manual') {
//TODO: add manual grading icon
if (empty($object->outcomeid)) {
- $icon = '
'; // TODO: localize
+ $icon = '
'; // TODO: localize
} else {
- $icon = '
';
+ $icon = '
';
}
}
@@ -228,7 +232,9 @@ function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedl
$moveto = '';
if ($moving) {
$actions = ''; // no action icons when moving
- $moveto = '