overtime only appearing, when there is a booking
All checks were successful
Tests / Run Go Tests (push) Successful in 29s

This commit is contained in:
2025-09-30 00:15:48 +02:00
parent 90193e9346
commit 15a2a9c075
2 changed files with 41 additions and 37 deletions

View File

@@ -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) }