clubmanager/templates/components/shift_button.rs.html

11 lines
248 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())
}