2023-11-02 22:46:38 +01:00
|
|
|
<% if is_correct { %>
|
2023-11-05 19:54:47 +01:00
|
|
|
<article class="centered">
|
|
|
|
<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
|
|
|
</article>
|
|
|
|
<% } else { %>
|
2023-11-05 19:54:47 +01:00
|
|
|
<article class="centered">
|
|
|
|
<h1>Wrong</h1>
|
|
|
|
<p>
|
2023-11-02 22:46:38 +01:00
|
|
|
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.
|
|
|
|
<% } %>
|
2023-11-05 19:54:47 +01:00
|
|
|
</p>
|
2023-11-02 22:46:38 +01:00
|
|
|
</article>
|
|
|
|
<% } %>
|