From 3d18a67a2f2cb6934a8394ff7513466ed0a88093 Mon Sep 17 00:00:00 2001
From: Andreas Hubel
Date: Wed, 13 Mar 2019 16:04:59 +0100
Subject: optimize schedule display for talks.duration <= 10 minutes
---
template/assemblies/schedule.phtml | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
(limited to 'template/assemblies')
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml
index a519c23..fe0ccbb 100644
--- a/template/assemblies/schedule.phtml
+++ b/template/assemblies/schedule.phtml
@@ -41,14 +41,15 @@
=h($event['title'])?>
else: ?>
-
- =h(strftime('%H:%M', $event['start']))?>
- –
- =h(strftime('%H:%M', $event['end']))?>
- in
- =h($scheduleRoom ? $scheduleRoom->getDisplayShort() : $roomname) ?>
-
-
+ if($event['duration'] > 10*60): /* only display when event is longer as 10 minutes */ ?>
+ =h(strftime('%H:%M', $event['start']))?>
+ –
+ =h(strftime('%H:%M', $event['end']))?>
+ in
+ =h($scheduleRoom ? $scheduleRoom->getDisplayShort() : $roomname) ?>
+
+ endif ?>
+
=h($event['title'])?> if (@$event['optout']): ?> (no stream) endif ?>
if(! empty(trim($event['speaker']))): ?>
--
cgit v1.2.3