overtime only appearing, when there is a booking
All checks were successful
Tests / Run Go Tests (push) Successful in 29s
All checks were successful
Tests / Run Go Tests (push) Successful in 29s
This commit is contained in:
@@ -115,9 +115,9 @@ templ defaultDayComponent(day models.IWorkDay) {
|
||||
<p class="text-accent flex flex-row items-center"><span class="icon-[material-symbols-light--schedule-outline]"></span>{ helper.FormatDuration(work) }</p>
|
||||
}
|
||||
if pause > 0 {
|
||||
<p class="text-neutral-500 flex flex-row items-center"><span class="icon-[material-symbols-light--motion-photos-paused-outline]"></span>{ helper.FormatDuration(pause) }</p>
|
||||
}
|
||||
<p class="text-neutral-500 flex flex-row items-center"><span class="icon-[material-symbols-light--motion-photos-paused-outline]"></span>{ helper.FormatDuration(pause) }</p>
|
||||
if overtime != 0 {
|
||||
if overtime != 0 && len(workDay.Bookings) > 0 {
|
||||
<p class="text-neutral-500 flex flex-row items-center">
|
||||
<span class="icon-[material-symbols-light--more-time]"></span>
|
||||
{ helper.FormatDuration(overtime) }
|
||||
|
||||
Reference in New Issue
Block a user