diff --git a/includes/view/ShiftCalendarRenderer.php b/includes/view/ShiftCalendarRenderer.php index fdda2907..63ab6cc7 100644 --- a/includes/view/ShiftCalendarRenderer.php +++ b/includes/view/ShiftCalendarRenderer.php @@ -215,6 +215,12 @@ class ShiftCalendarRenderer { $time = Carbon::createFromTimestamp($time); $class = $label ? 'tick bg-' . theme_type() : 'tick '; + + $diffNow = $time->diffInMinutes(null, false) * 60; + if ($diffNow >= 0 && $diffNow < self::SECONDS_PER_ROW) { + $class .= ' now'; + } + if ($time->isStartOfDay()) { if (!$label) { return div($class . ' day'); diff --git a/resources/assets/themes/base.scss b/resources/assets/themes/base.scss index f0abc88c..32e76b70 100644 --- a/resources/assets/themes/base.scss +++ b/resources/assets/themes/base.scss @@ -251,6 +251,10 @@ table .border-bottom { font-size: 0.9em; padding-left: 5px; } + + .tick.now { + border-top: 2px solid $info; + } } .lane.time {