diff options
author | Andreas Hubel | 2017-08-07 17:18:39 +0200 |
---|---|---|
committer | Andreas Hubel | 2017-08-11 11:26:45 +0200 |
commit | a39fc1b5955a67230677e9abb2446e89a1d38d12 (patch) | |
tree | c5b90eab8e8fa9346e9804d86d1316ce1e50e4c2 | |
parent | 63be1c5cb16e59dfee89d25f14b5d39516b6af86 (diff) |
show shedule tab before format tab
-rw-r--r-- | template/room.phtml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/template/room.phtml b/template/room.phtml index 35e38a1..236ccc5 100644 --- a/template/room.phtml +++ b/template/room.phtml @@ -24,7 +24,12 @@ </div> <ul class="nav nav-functions nav-tabs nav-justified" role="tablist"> - <li class="active"> + <? if($room->hasSchedule()): ?> + <li class="active"> + <a href="#schedule" role="tab" data-toggle="tab">Fahrplan</a> + </li> + <? endif ?> + <li> <a href="#switcher" role="tab" data-toggle="tab">Formats</a> </li> <? if($room->hasChat()): ?> @@ -32,11 +37,6 @@ <a href="#chat" role="tab" data-toggle="tab">Chat</a> </li> <? endif ?> - <? if($room->hasSchedule()): ?> - <li> - <a href="#schedule" role="tab" data-toggle="tab">Fahrplan</a> - </li> - <? endif ?> <? if($room->hasFeedback()): ?> <li> <a href="#feedback" role="tab" data-toggle="tab">Feedback</a> @@ -50,7 +50,12 @@ </ul> <div class="functions-wrap tab-content"> - <div role="tabpanel" class="tab-pane active" id="switcher"> + <? if($room->hasSchedule()): ?> + <div role="tabpanel" class="tab-pane active" id="schedule"> + <? require("$assemblies/schedule.phtml") ?> + </div> + <? endif ?> + <div role="tabpanel" class="tab-pane" id="switcher"> <? require("$assemblies/switcher/".$stream->getPlayerType().".phtml") ?> </div> <? if($room->hasChat()): ?> @@ -58,11 +63,6 @@ <? require("$assemblies/chat.phtml") ?> </div> <? endif ?> - <? if($room->hasSchedule()): ?> - <div role="tabpanel" class="tab-pane" id="schedule"> - <? require("$assemblies/schedule.phtml") ?> - </div> - <? endif ?> <? if($room->hasFeedback()): ?> <div role="tabpanel" class="tab-pane" id="feedback"> <? require("$assemblies/feedback.phtml") ?> |