diff --git a/main/gradebook/lib/be/exerciselink.class.php b/main/gradebook/lib/be/exerciselink.class.php index b87077818e..eb08e45d94 100755 --- a/main/gradebook/lib/be/exerciselink.class.php +++ b/main/gradebook/lib/be/exerciselink.class.php @@ -488,7 +488,7 @@ class ExerciseLink extends AbstractLink foreach ($lpList as &$list) { $list['name'] = Display::label($list['name'], 'warning'); } - $lpListToString = '  '.implode(', ', array_column($lpList, 'name')); + $lpListToString = implode(' ', array_column($lpList, 'name')); } return $lpListToString; diff --git a/main/gradebook/lib/fe/gradebooktable.class.php b/main/gradebook/lib/fe/gradebooktable.class.php index 2493f4d721..175c5c9fe6 100755 --- a/main/gradebook/lib/fe/gradebooktable.class.php +++ b/main/gradebook/lib/fe/gradebooktable.class.php @@ -617,7 +617,7 @@ class GradebookTable extends SortableTable // Name. $row[] = $invisibility_span_open.'    '. - $this->build_name_link($item, $type).$invisibility_span_close; + $this->build_name_link($item, $type, 4).$invisibility_span_close; // Description. if (false == $this->exportToPdf) { @@ -1160,7 +1160,7 @@ class GradebookTable extends SortableTable * * @return string */ - private function build_name_link($item, $type = 'detail') + private function build_name_link($item, $type = 'detail', $spaces = 0) { $view = isset($_GET['view']) ? Security::remove_XSS($_GET['view']) : null; $categoryId = $item->getCategory()->get_id(); @@ -1232,6 +1232,7 @@ class GradebookTable extends SortableTable .''; } + $extra = Display::label($item->get_type_name(), 'info'); if ('simple' === $type) { $extra = ''; @@ -1240,7 +1241,8 @@ class GradebookTable extends SortableTable $text .= " ".$extra.$show_message; if ($item instanceof ExerciseLink) { - $text .= '
'.$item->getLpList(); + $spaces = str_repeat(' ', $spaces); + $text .= '

'.$spaces.$item->getLpList(); } $cc = $this->currentcat->get_course_code();