@use super::base_html; @use super::components::return_to_main_html; @use cm_lib::models::Shift; @(shifts: Vec) @:base_html({ @:return_to_main_html() Shift Reports Shift ID Shift Start Shift End @for shift in shifts { @shift.id @shift.start.format("%A, %b %m - %H:%M") @if let Some(end) = shift.end { @end.format("%A, %b %m - %H:%M") } else { Currently Open } View Shift } })