feat: add error commands page

This commit is contained in:
wancat committed 2023-10-14 17:43:12 +08:00
1 parent d249207283
commit 50e53b5667
6 files changed
+60 -1

No files matched your search

@@ -0,0 +1,22 @@
<h1>Commands</h1>
<div>
<h2>Error commands</h2>
<table>
<tr>
<th>Command</th>
<th>User</th>
<th>Quest</th>
<th>Error</th>
<th>Created At</th>
</tr>
{{#each errorCommands}}
<tr>
<td>{{command}}</td>
<td>{{user}}</td>
<td>{{quest}}</td>
<td>{{error}}</td>
<td>{{createdAt}}</td>
</tr>
{{/each}}
</table>
</div>
-1
View File
@@ -1,5 +1,4 @@
<h1>Welcome to {{title}}</h1>
<p>This is the content of the homepage.</p>
<div>
<h2>Users</h2>
<table>
@@ -8,6 +8,7 @@
<ul>
<li><a href='/'>Home</a></li>
<li><a href='/users'>Users</a></li>
<li><a href='/commands'>Commands</a></li>
</ul>
</nav>
{{{body}}}