85 lines
No EOL
2.1 KiB
Cheetah
85 lines
No EOL
2.1 KiB
Cheetah
{{template "head"}}
|
|
<h2>New Tasks</h2>
|
|
<form method="POST">
|
|
<label for="library">Library:</label>
|
|
<select id="library" name="library">
|
|
{{range $l := .Libraries}}
|
|
<option value="{{$l.ID}}">{{$l.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
<label for="health">Health</label>
|
|
<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>
|
|
<label for="type">Type</label>
|
|
<select id="type" name="type">
|
|
<option value="0">Health Check</option>
|
|
<option value="1">Transcode</option>
|
|
</select>
|
|
<label for="ffmpeg_command">FFmpeg Command:</label>
|
|
<select id="ffmpeg_command" name="ffmpeg_command">
|
|
{{range $l := .FfmpegCommands}}
|
|
<option value="{{$l.ID}}">{{$l.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
<input type="submit" value="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>
|
|
<table>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Library</th>
|
|
<th>Worker</th>
|
|
<th>Type</th>
|
|
<th>FFmpeg Command</th>
|
|
<th>Status</th>
|
|
<th>File</th>
|
|
<th>Updated At</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.FfmpegCommand }}
|
|
</td>
|
|
<td>
|
|
{{ $t.Status }}
|
|
</td>
|
|
<td>
|
|
{{ $t.File }}
|
|
</td>
|
|
<td>
|
|
{{ $t.UpdatedAt }}
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
{{template "tail"}} |