Minor - fix LP list UI

pull/3388/head
Julio Montoya 5 years ago
parent 2f1e0fd2c7
commit 43cf79e925
  1. 2
      main/gradebook/lib/be/exerciselink.class.php
  2. 8
      main/gradebook/lib/fe/gradebooktable.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;

@ -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
.'</a>';
}
$extra = Display::label($item->get_type_name(), 'info');
if ('simple' === $type) {
$extra = '';
@ -1240,7 +1241,8 @@ class GradebookTable extends SortableTable
$text .= "&nbsp;".$extra.$show_message;
if ($item instanceof ExerciseLink) {
$text .= '<br />'.$item->getLpList();
$spaces = str_repeat('&nbsp;', $spaces);
$text .= '<br /><br />'.$spaces.$item->getLpList();
}
$cc = $this->currentcat->get_course_code();

Loading…
Cancel
Save