aboutsummaryrefslogtreecommitdiff
path: root/template/room.phtml
diff options
context:
space:
mode:
authordedeibel2017-12-28 19:03:59 +0100
committerMaZderMind2018-01-24 23:41:44 +0100
commit6a6aff35d43e90714ffb14a60770185eafb7a122 (patch)
tree3fd07d589869c821f82c49d9bd380f6bdccce977 /template/room.phtml
parent870bacae02c922c795b2af4e39839c279168768b (diff)
all: room: select formats if no schedule is shown
Diffstat (limited to 'template/room.phtml')
-rw-r--r--template/room.phtml5
1 files changed, 3 insertions, 2 deletions
diff --git a/template/room.phtml b/template/room.phtml
index 236ccc5..814efe2 100644
--- a/template/room.phtml
+++ b/template/room.phtml
@@ -29,7 +29,7 @@
<a href="#schedule" role="tab" data-toggle="tab">Fahrplan</a>
</li>
<? endif ?>
- <li>
+ <li <? if (! $room->hasSchedule()): ?>class="active"<? endif ?>>
<a href="#switcher" role="tab" data-toggle="tab">Formats</a>
</li>
<? if($room->hasChat()): ?>
@@ -55,7 +55,8 @@
<? require("$assemblies/schedule.phtml") ?>
</div>
<? endif ?>
- <div role="tabpanel" class="tab-pane" id="switcher">
+ <div role="tabpanel" class="tab-pane<? if (! $room->hasSchedule()): ?> active<? endif ?>"
+ id="switcher">
<? require("$assemblies/switcher/".$stream->getPlayerType().".phtml") ?>
</div>
<? if($room->hasChat()): ?>