Index Use Sub Templates, Show Tasks
This commit is contained in:
parent
c9abf3aa88
commit
fe0c712447
1 changed files with 110 additions and 82 deletions
|
@ -1,17 +1,10 @@
|
||||||
<!DOCTYPE html>
|
{{template "head"}}
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" href="/static/style/style.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Morffix</h1>
|
|
||||||
|
|
||||||
<div id="wierd-flex" class="counter">
|
<div id="wierd-flex" class="counter">
|
||||||
{{range $c := .Counter}}
|
{{range $c := .Counter}}
|
||||||
<img class="counter-image" alt="{{$c}}" src="/static/counter/{{$c}}.gif">
|
<img class="counter-image" alt="{{$c}}" src="/static/counter/{{$c}}.gif">
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
<h2>Workers</h2>
|
||||||
<div class="worker-list">
|
<div class="worker-list">
|
||||||
{{range $w := .Workers}}
|
{{range $w := .Workers}}
|
||||||
<div class="worker">
|
<div class="worker">
|
||||||
|
@ -79,5 +72,40 @@
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</body>
|
<p>
|
||||||
</html>
|
<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>
|
||||||
|
<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"}}
|
Loading…
Add table
Reference in a new issue