Files
linux-odyssey/packages/analytics/views/sessionDetail.handlebars
T
2023-12-10 02:21:02 +08:00

58 lines
1.1 KiB
Handlebars

<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>Stage</th>
<th>PWD</th>
<th>Input</th>
<th>Output</th>
<th>Error</th>
<th>Input Time</th>
</tr>
{{#each commands}}
<tr>
<td>{{stage}}</td>
<td>{{pwd}}</td>
<td>{{command}}</td>
<td>{{output}}</td>
<td>{{error}}</td>
<td>{{createdAt}}</td>
</tr>
{{/each}}
</table>
{{/with}}
</div>