18 lines
607 B
Text
18 lines
607 B
Text
<% if is_correct { %>
|
|
<article class="centered">
|
|
<h1>Correct</h1>
|
|
<p>Your answer is correct. The correct answer is <b><%= correct_answer %></b>.</p>
|
|
</article>
|
|
<% } else { %>
|
|
<article class="centered">
|
|
<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>
|
|
</article>
|
|
<% } %>
|