<% if !htmx {%> zettoIT ARS
<% } %> <% if let PlayerState::NotStarted = state { %>
The Quiz hasn't started yet. Please wait for the first question.
<% } else if let PlayerState::Answering{ inner_body } = state { %> <%- inner_body %> <% } else if let PlayerState::Waiting(_) = state{ %>
You answered the current question. Please wait for the results.
<% } else if let PlayerState::Result{ inner_body } = state{ %> <%- inner_body %> <% } else if let PlayerState::Completed(correct) = state { %>
The Quiz finished. You can close this tab now. You answered <%= correct*100.0 %>% correctly.
<% } %> <% if !htmx { %>
<% } %>