diff options
Diffstat (limited to 'src/marlin.web/Views/Agents/List.cshtml')
| -rw-r--r-- | src/marlin.web/Views/Agents/List.cshtml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/marlin.web/Views/Agents/List.cshtml b/src/marlin.web/Views/Agents/List.cshtml new file mode 100644 index 0000000..cb0e0df --- /dev/null +++ b/src/marlin.web/Views/Agents/List.cshtml @@ -0,0 +1,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>
\ No newline at end of file |
