aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/CourseDateList.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-22 16:13:59 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-22 16:13:59 +0100
commit1620fc15d1d21989fb38d9f3596cdf03f8535ff5 (patch)
treefe16b79cba4b1105ccbc9c4ab16b4b606dd10950 /lib/classes/CourseDateList.php
parentdda96cbbdf9237d90297ed1559f0a4d27713b2ec (diff)
implement logic that may collapse list, fixes #6380biest-6380
Diffstat (limited to 'lib/classes/CourseDateList.php')
-rw-r--r--lib/classes/CourseDateList.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/classes/CourseDateList.php b/lib/classes/CourseDateList.php
index cb1c504..02261e0 100644
--- a/lib/classes/CourseDateList.php
+++ b/lib/classes/CourseDateList.php
@@ -180,7 +180,8 @@ class CourseDateList implements Stringable
public function toHtml(
bool $group_by_rooms = false,
bool $with_room_names = false,
- bool $with_cancelled_dates = false
+ bool $with_cancelled_dates = false,
+ bool $as_collapsible_list = false
) : string {
if ($this->isEmpty()) {
return _('Die Zeiten der Veranstaltung stehen nicht fest.');
@@ -230,6 +231,7 @@ class CourseDateList implements Stringable
} else {
$template = $GLOBALS['template_factory']->open('dates/course_date_list');
$template->with_room_names = $with_room_names;
+ $template->as_collapsible_list = $as_collapsible_list;
$template->collection = $this;
}
$template->with_cancelled_dates = $with_cancelled_dates;