Clean up, add API
This commit is contained in:
15
drill-and-practice/views/incorrect.eta
Normal file
15
drill-and-practice/views/incorrect.eta
Normal file
@@ -0,0 +1,15 @@
|
||||
<% layout("./layouts/layout.eta") %>
|
||||
<h1>Your answer is not correct.</h1>
|
||||
|
||||
<h2>Correct answer:</h2>
|
||||
|
||||
<% if (it.data && it.data.length > 0) { %>
|
||||
|
||||
<% it.data.forEach(item => { %>
|
||||
<%= item %>
|
||||
<% }); %>
|
||||
<% } else { %>
|
||||
<p>Correct options are not found.</p>
|
||||
<% } %>
|
||||
|
||||
<a href="/quiz/<%= it.tid %>">Next question</a>
|
||||
Reference in New Issue
Block a user