ars/templates/single_choice/result.stpl

15 lines
471 B
Text
Raw Normal View History

2023-11-02 22:46:38 +01:00
<% if is_correct { %>
2023-11-05 23:01:47 +01:00
<h1>Correct</h1>
<p>Your answer is correct. The correct answer is <b><%= correct_answer %></b>.</p>
2023-11-02 22:46:38 +01:00
<% } else { %>
2023-11-05 23:01:47 +01:00
<h1>Wrong</h1>
<p>
Your answer is incorrect. The correct answer is <b><%= correct_answer %></b>.
<% if let Some(player_answer) = player_answer { %>
You answered <b><%= player_answer %></b>.
<% } else { %>
You didn't answer the question.
<% } %>
</p>
2023-11-02 22:46:38 +01:00
<% } %>