Skip to content

Commit

Permalink
Moves @silentrob’s time into existing template variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethormandy committed Aug 19, 2014
1 parent af0d9db commit 544accf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@
var text = "", when = "", nextEvent = "";
var fb = fbs.find(function (fb) { return now.isBefore(fb.end); });

if (ne) {
nextEvent = "Next event in " + moment(ne).fromNow(true);
}

if (fb) {
willBeBusy = (now.isBefore(fb.end));
isBusy = (now.isAfter(fb.start) && willBeBusy);
Expand All @@ -119,8 +115,8 @@
} else {
isBusy = false
if (ne) {
text = "free for ";
when = moment(ne).fromNow();
text = "next booked in ";
when = moment(ne).fromNow(true);
}
}

Expand Down

0 comments on commit 544accf

Please sign in to comment.