diff --git a/configs/conferences/fosdem/config.json b/configs/conferences/fosdem/config.json index 066ec727..b240e69c 100644 --- a/configs/conferences/fosdem/config.json +++ b/configs/conferences/fosdem/config.json @@ -32,9 +32,9 @@ "display": "#%s:fosdem.org", "url": "https://matrix.to/#/#%s:fosdem.org?web-instance[element.io]=chat.fosdem.org" } - } }, "hide_rooms_without_talks": true, + "show_track_in_overview": true }, "overviewPage": {}, "schedule": { diff --git a/model/Schedule.php b/model/Schedule.php index c2506333..266225e7 100644 --- a/model/Schedule.php +++ b/model/Schedule.php @@ -244,6 +244,7 @@ class Schedule // normal talk $talk = $this->makeEvent($start, $end); $talk['guid'] = (string)$event['guid']; + $talk['track'] = (string)$event->track; $talk['title'] = (string)$event->title; $talk['speaker'] = implode(', ', $personnames); $talk['room_known'] = $this->isRoomMapped($roomName); diff --git a/template/overview.phtml b/template/overview.phtml index def70cf9..b9e03a45 100644 --- a/template/overview.phtml +++ b/template/overview.phtml @@ -107,7 +107,13 @@ $current = @$upcoming['current']; $next = @$upcoming['next']; $current_is_special = $current['special'] ?? false; - $next_is_special = $next['special'] ?? false; ?> + $next_is_special = $next['special'] ?? false; + + if($conference->get('show_track_in_overview')): + ?> +
+ +