feat(overview): add option to display room track

This commit is contained in:
Andreas Hubel 2024-02-03 14:12:23 +01:00
parent cc6fa1b783
commit 7ed33ca722
No known key found for this signature in database
GPG key ID: 1291899EC534ECDE
3 changed files with 9 additions and 2 deletions

View file

@ -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": {

View file

@ -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);

View file

@ -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')):
?>
<h5 class="track"><?=h( @$current['track'] ?: @$next['track']) ?></h5>
<? endif ?>
<div class="program-schedule">
<? if($current && !$current_is_special): ?>
<div class="talk current-talk" title="<?=h(@$current['title'] ?: 'none') ?>">