Bugfix radioprogrammas niet op hele uren
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
@php($now = new \DateTime("now"))
|
||||
@foreach($schedule as $item)
|
||||
@php($diff = $item['endtime']->diff($item['starttime']))
|
||||
@php($duration = $diff->d * 24 + $diff->h + $diff->m / 60)
|
||||
@php($duration = $diff->d * 24 + $diff->h + $diff->i / 60)
|
||||
@php($isCurrent = ($now >= $item['starttime']) && ($now <= $item['endtime']))
|
||||
@php($class = ($item['program']->priority < 2 ? ' special' : '')
|
||||
. ($item['program']->nonstop || $item['program']->rerun ? ' non-stop' : '')
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class="program-title">{{$item['program']->name}}</div>
|
||||
@if($isCurrent) <div class="current-marker"><span>Nu op NH Gooi</span></div> @endif
|
||||
<div class="program-content">
|
||||
<div class="program-times">{{$item['starttime']->format('H:i')}} – {{$item['endtime']->format('H:i')}} uur.</div>
|
||||
<div class="program-times"><span class="fa fa-clock"></span> {{$item['starttime']->format('H:i')}} – {{$item['endtime']->format('H:i')}} uur.</div>
|
||||
<div>{{Formatter::excerpt($item['program']->description, 150)}}</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -144,9 +144,14 @@
|
||||
}
|
||||
|
||||
.schedule .program.non-stop {
|
||||
color: #6c757d;
|
||||
border-color: #6C757D;
|
||||
color: #6C757D;
|
||||
}
|
||||
|
||||
.schedule .program.non-stop .program-title {
|
||||
background-color: #8F9BA6;
|
||||
}
|
||||
|
||||
.schedule .program.special {
|
||||
color: #03A6E0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user