mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
feat(overview): add option to display room track
This commit is contained in:
parent
cc6fa1b783
commit
7ed33ca722
3 changed files with 9 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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') ?>">
|
||||
|
|
Loading…
Reference in a new issue