72 lines
No EOL
1.8 KiB
Cheetah
72 lines
No EOL
1.8 KiB
Cheetah
{{template "head"}}
|
|
<h2>New Tasks</h2>
|
|
<form method="POST">
|
|
<label for="library">Library:</label><br />
|
|
<select id="library" name="library">
|
|
{{range $l := .Libraries}}
|
|
<option value="{{$l.ID}}">{{$l.Name}}</option>
|
|
{{end}}
|
|
</select><br />
|
|
<label for="health">Health</label><br />
|
|
<select id="health" name="health">
|
|
<option value="-1">All</option>
|
|
<option value="0">Unknown</option>
|
|
<option value="1">Damaged</option>
|
|
<option value="2">Healthy</option>
|
|
</select> <br />
|
|
<label for="type">Type</label><br />
|
|
<select id="type" name="type">
|
|
<option value="0">Health Check</option>
|
|
</select> <br />
|
|
<input type="submit">
|
|
</form>
|
|
|
|
<h2>Task Stats</h2>
|
|
Running: {{.Stats.RunningCount}}
|
|
Queued: {{.Stats.QueuedCount}}
|
|
Failed: {{.Stats.FailedCount}}
|
|
Success: {{.Stats.SuccessCount}}
|
|
Unknown: {{.Stats.UnknownCount}}
|
|
Assigned: {{.Stats.AssignedCount}}
|
|
Paused: {{.Stats.PausedCount}}
|
|
Waiting: {{.Stats.WaitingCount}}
|
|
Total: {{.Stats.TotalCount}}
|
|
|
|
|
|
|
|
<h2>Tasks</h2>
|
|
<div class="task-list">
|
|
<table>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Library</th>
|
|
<th>Worker</th>
|
|
<th>Type</th>
|
|
<th>Status</th>
|
|
<th>File</th>
|
|
</tr>
|
|
{{range $t := .Tasks}}
|
|
<tr onclick="window.location='/tasks/{{ $t.ID }}';">
|
|
<td>
|
|
{{ $t.ID }}
|
|
</td>
|
|
<td>
|
|
{{ $t.Library }}
|
|
</td>
|
|
<td>
|
|
{{ $t.Worker }}
|
|
</td>
|
|
<td>
|
|
{{ $t.Type }}
|
|
</td>
|
|
<td>
|
|
{{ $t.Status }}
|
|
</td>
|
|
<td>
|
|
{{ $t.File }}
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
</div>
|
|
{{template "tail"}} |