mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
feat: session detail page
This commit is contained in:
1 parent
a4f1c9fef1
commit
2257b4b809
4 files changed
+70
-3
No files matched your search
@@ -0,0 +1,56 @@
|
||||
<h1>{{title}}</h1>
|
||||
<div>
|
||||
{{#with session}}
|
||||
<table>
|
||||
<tr>
|
||||
<th>Quest</th>
|
||||
<td>{{quest}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<td>{{user}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Status</th>
|
||||
<td>{{status}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Created At</th>
|
||||
<td>{{createdAt}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Finished At</th>
|
||||
<td>{{finishedAt}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Used Time</th>
|
||||
<td>{{usedTime}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Command Count</th>
|
||||
<td>{{commands.length}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2>Commands</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Command</th>
|
||||
<th>PWD</th>
|
||||
<th>Output</th>
|
||||
<th>Error</th>
|
||||
<th>Created At</th>
|
||||
</tr>
|
||||
{{#each commands}}
|
||||
<tr>
|
||||
<td>{{command}}</td>
|
||||
<td>{{pwd}}</td>
|
||||
<td>{{output}}</td>
|
||||
<td>{{error}}</td>
|
||||
<td>{{createdAt}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
{{/with}}
|
||||
</div>
|
||||
Reference in new issue
Block a user