Feat: User Session History

This commit is contained in:
chreamy committed 2024-03-05 00:26:22 -06:00
1 parent dc972173a4
commit a71411d5bf
9 files changed
+92 -19

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@
</tr>
{{#each users}}
<tr>
<td href='/users/{{_id}}'>{{username}}</td>
<td><a href='/users/{{_id}}'>{{username}}</a></td>
<td>{{lastActivityAt}}</td>
<td>{{sessionCount}}</td>
<td>{{email}}</td>
@@ -0,0 +1,21 @@
<h1>{{user}}'s Sessions History</h1>
<div>
<table>
<tr>
<th>Quest</th>
<th>Status</th>
<th>Created At</th>
<th>Used Time</th>
<th>Session</th>
</tr>
{{#each sessions}}
<tr>
<td>{{quest}}</td>
<td>{{status}}</td>
<td>{{createdAt}}</td>
<td>{{usedTime}}</td>
<td><a href='/sessions/{{_id}}'>Detail</a></td>
</tr>
{{/each}}
</table>
</div>