mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Better dividers in the table
This commit is contained in:
parent
a1a6750357
commit
858c8a05e8
3 changed files with 37 additions and 19 deletions
|
@ -45,12 +45,15 @@
|
|||
$currentsection = "";
|
||||
foreach ($resources as $resource) {
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
if ($resource->section != $currentsection and $resource->section) {
|
||||
$printsection = $resource->section;
|
||||
$printsection = "";
|
||||
if ($resource->section !== $currentsection) {
|
||||
if ($resource->section) {
|
||||
$printsection = $resource->section;
|
||||
}
|
||||
if ($currentsection !== "") {
|
||||
$table->data[] = 'hr';
|
||||
}
|
||||
$currentsection = $resource->section;
|
||||
$table->data[] = 'hr';
|
||||
} else {
|
||||
$printsection = "";
|
||||
}
|
||||
} else {
|
||||
$printsection = '<span class="smallinfo">'.userdate($resource->timemodified)."</span>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue