Skip to content

Commit

Permalink
Merge pull request #5 from LA1TV/master
Browse files Browse the repository at this point in the history
Carousel will now show 'live shortly' if it's a live show
  • Loading branch information
tjenkinson committed Oct 1, 2014
2 parents ee8fc4c + 2848a50 commit a51e0c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/home/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ private function buildTimeStr($isLive, $time) {
$liveStr = $isLive ? "Live" : "Available";

if ($time->isPast()) {
return "Available On Demand Now";
if (!$isLive) {
return "Available On Demand Now";
}
else {
return "Live Shortly";
}
}
else if ($time->isToday()) {
return $liveStr." Today at ".$time->format("H:i");
Expand Down

0 comments on commit a51e0c8

Please sign in to comment.