diff options
author | MaZderMind | 2015-03-03 13:06:12 +0100 |
---|---|---|
committer | MaZderMind | 2015-03-03 13:06:12 +0100 |
commit | 53c4d5c90fc1a13064c1b463708dc3bcd5a6ec43 (patch) | |
tree | a850a32a185201c4604f817a93fd47a70ae60c8e | |
parent | 1e6d220ce629e5855adc8bb8cc400d283ae55d01 (diff) |
Fixes for Schedules with more and with not streamed Rooms
-rw-r--r-- | assets/css/_program.less | 2 | ||||
-rw-r--r-- | template/assemblies/program.phtml | 31 |
2 files changed, 21 insertions, 12 deletions
diff --git a/assets/css/_program.less b/assets/css/_program.less index 8c528a9..92c86ce 100644 --- a/assets/css/_program.less +++ b/assets/css/_program.less @@ -16,7 +16,7 @@ position: absolute; left: 0; width: 150px; - height: 500px; + height: 100%; background-color: @program-now-bg; font-size: 14px; diff --git a/template/assemblies/program.phtml b/template/assemblies/program.phtml index ce69c51..d7f7045 100644 --- a/template/assemblies/program.phtml +++ b/template/assemblies/program.phtml @@ -7,10 +7,9 @@ foreach(reset($program) as $event) <div class="program scroll-container"> <div class="scroll-element"> <div class="now"><span>now</span></div> - <? foreach($program as $name => $events): ?> - <div class="room <? if($name == get("ROOMS.$room.SCHEDULE_NAME", $room)): ?>highlight<? endif ?>" style="width: <?=$width / get('SCHEDULE.SCALE')?>px"> + <? foreach($program as $roomname => $events): ?> + <div class="room <? if($roomname == get("ROOMS.$room.SCHEDULE_NAME", $room)): ?>highlight<? endif ?>" style="width: <?=$width / get('SCHEDULE.SCALE')?>px"> <? foreach($events as $event): ?> - <div class="block <?=h(@$event['special'] ?: 'event')?>" style="width: <?=h($event['duration'] / get('SCHEDULE.SCALE'))?>px" @@ -35,17 +34,27 @@ foreach(reset($program) as $event) – <?=h(strftime('%H:%M', $event['end']))?> in - <a href="<?=h(link_player($room))?>"> - <?=h(get("ROOMS.$room.DISPLAY"))?> - </a> + <? if(has("ROOMS.$roomname")): ?> + <a href="<?=h(link_player($roomname))?>"> + <?=h(get("ROOMS.$roomname.DISPLAY"))?> + </a> + <? else: ?> + <?=h($roomname) ?> + <? endif ?> </h4> <h3> - <a - href="<?=h(link_player($room))?>" - title="Switch to <?=h(get("ROOMS.$room.DISPLAY"))?>" - ><?=h($event['title'])?></a> + <? if(has("ROOMS.$roomname")): ?> + <a + href="<?=h(link_player($roomname))?>" + title="Switch to <?=h(get("ROOMS.$roomname.DISPLAY"))?>" + ><?=h($event['title'])?></a> + <? else: ?> + <?=h($event['title'])?> + <? endif ?> </h3> - <h5>by <?=h($event['speaker'])?></h5> + <? if($event['speaker']): ?> + <h5>by <?=h($event['speaker'])?></h5> + <? endif ?> <? endif ?> </div> |