clubmanager/templates/components/shift_button.rs.html
2023-09-30 14:51:11 -07:00

11 lines
249 B
HTML

@use super::close_shift_button_html;
@use super::open_shift_button_html;
@use cm_lib::models::Shift;
@(open_shift: Option<&Shift>)
@if open_shift.is_none() {
@:open_shift_button_html()
} else {
@:close_shift_button_html(open_shift.unwrap())
}