fixup! manager: allow separate arrival/departure check for partial bookings (#80047)
gitea/chrono/pipeline/head This commit looks good
Details
gitea/chrono/pipeline/head This commit looks good
Details
This commit is contained in:
parent
9046ce7379
commit
28a0f3fa7d
|
@ -1671,11 +1671,10 @@ class AgendaDayView(EventChecksMixin, AgendaDateView, DayArchiveView):
|
|||
if not check.start_time:
|
||||
check.css_class += ' end-only'
|
||||
check.css_left = booking.css_left
|
||||
check.css_width = booking.css_width
|
||||
check.css_width = get_time_ratio(check.end_time, booking.start_time)
|
||||
elif not check.end_time:
|
||||
check.css_class += ' start-only'
|
||||
check.css_left = get_time_ratio(check.start_time, start_time)
|
||||
check.css_width = 4
|
||||
else:
|
||||
check.css_left = get_time_ratio(check.start_time, start_time)
|
||||
check.css_width = get_time_ratio(check.end_time, check.start_time)
|
||||
|
|
Loading…
Reference in New Issue