blob: cb0e0dfb6c0f7a492f6d99128adad5cb403624c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
@model ICollection<Agent>
<a asp-action="Create">New</a>
<table>
<thead>
<tr>
<th>name</th>
<th>seen</th>
<th>status</th>
</tr>
</thead>
<tbody>
@foreach (var agent in Model)
{
<tr>
<td><a asp-action="Details" asp-route-id="@agent.Id">@agent.Name</a></td>
<td>@agent.LastSeen.ToString("G")</td>
<td>
@if (agent.Jobs.Any())
{
<span>processing @agent.Jobs.Count jobs</span>
}
else
{
<span>idling</span>
}
</td>
</tr>
}
</tbody>
</table>
|