blob: 3512a9809385a871c0f0f947186f8d32862b057f (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
@using marlin.core.models
@model Agent
<div class="row">
<div class="col">
<h3>Details</h3>
<hr/>
<form method="post" asp-route-id="@Model.Id" asp-action="Edit">
<dl>
<dt>Name</dt>
<dd>
<input type="text" name="@nameof(Agent.Name)" value="@Model.Name"/>
</dd>
<dt>Max Concurrent Jobs</dt>
<dd>
<input type="number" name="@nameof(Agent.MaxConcurrentJobs)" value="@Model.MaxConcurrentJobs"/>
</dd>
<dt>Last Seen</dt>
<dd>
@Model.LastSeen.ToString("G")
</dd>
<button type="submit">Save</button>
</dl>
</form>
</div>
<div class="col">
<h3>Setup</h3>
<hr/>
<form method="post" asp-route-id="@Model.Id" asp-action="RegenerateToken">
<dl>
<dt>Agent ID</dt>
<dd>
@Model.Id
</dd>
<dt>Auth Token</dt>
<dd>
@Model.AuthToken
</dd>
<button type="submit">Regenerate</button>
</dl>
</form>
</div>
</div>
<h3>Capabilities</h3>
<hr/>
<table class="vertable">
<tbody>
@foreach (var capability in Model.Capabilities.Items)
{
<tr>
<td>@capability.Key</td>
<td>@capability.Value</td>
</tr>
}
</tbody>
</table>
<a asp-controller="Jobs" asp-action="List" asp-route-Agent="@Model.Id" asp-route-Status="@JobStatus.Active">Active
jobs</a>
<a asp-action="List">Back</a>
|