@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("%Y-%m-%d %H:%M:%S") @if let Some(end) = shift.end { @end.format("%Y-%m-%d %H:%M:%S") } else { Currently Open } View Shift } })