Major bug fix

This commit is contained in:
AndrewTrieu
2023-03-10 16:41:57 +02:00
parent 4c8e7e8588
commit 0fab2411ee
19 changed files with 965 additions and 19 deletions

View File

@@ -0,0 +1,18 @@
<% layout("./layouts/layout.eta") %>
<h1>Quiz</h1>
<h2>All available topics</h2>
<% if (it.topics && it.topics.length > 0) { %>
<ul>
<% it.topics.forEach(topic => { %>
<p>
<li>
<a href="/quiz/<%= item.id %>"><%= item.name %></a>
</li>
</p>
<% }); %>
</ul>
<% } else { %>
<p>No available topics.</p>
<% } %>