clubmanager/templates/components/shift_button.rs.html

12 lines
248 B
HTML
Raw Normal View History

2023-09-27 00:11:36 +00:00
@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())
}