diff options
author | dedeibel | 2017-12-28 19:03:59 +0100 |
---|---|---|
committer | MaZderMind | 2018-01-24 23:41:44 +0100 |
commit | 6a6aff35d43e90714ffb14a60770185eafb7a122 (patch) | |
tree | 3fd07d589869c821f82c49d9bd380f6bdccce977 | |
parent | 870bacae02c922c795b2af4e39839c279168768b (diff) |
all: room: select formats if no schedule is shown
Diffstat (limited to '')
-rw-r--r-- | template/room.phtml | 5 |
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()): ?> |