diff --git a/tmpl/index.tmpl b/tmpl/index.tmpl index 6fe9aa2..46049b7 100644 --- a/tmpl/index.tmpl +++ b/tmpl/index.tmpl @@ -1,83 +1,111 @@ - - - - - - -

Morffix

- -
- {{range $c := .Counter}} - {{$c}} - {{end}} +{{template "head"}} +
+ {{range $c := .Counter}} + {{$c}} + {{end}} +
+

Workers

+
+ {{range $w := .Workers}} +
+

{{ $w.Name }}

+ + + + + + + + + + + + + + {{if $w.Connected}} + + + + + + + + + + + + + + + + + {{end}} +
+ Address + + {{ $w.Address }} +
+ Connected + + {{ $w.Connected }} +
+ ConnectionChanged + + {{ $w.ConnectionChanged }} +
+ CPUs + + {{ $w.Status.CPUCount }} +
+ CPU Usage + + {{ $w.Status.CPUUsage }}% +
+ Memory + + {{ $w.Status.MemoryTotal }} GB +
+ Memory Usage + + {{ $w.Status.MemoryUsage }}% +
- -
- {{range $w := .Workers}} -
-

{{ $w.Name }}

- - - - - - - - - - - - - - {{if $w.Connected}} - - - - - - - - - - - - - - - - - {{end}} -
- Address - - {{ $w.Address }} -
- Connected - - {{ $w.Connected }} -
- ConnectionChanged - - {{ $w.ConnectionChanged }} -
- CPUs - - {{ $w.Status.CPUCount }} -
- CPU Usage - - {{ $w.Status.CPUUsage }}% -
- Memory - - {{ $w.Status.MemoryTotal }} GB -
- Memory Usage - - {{ $w.Status.MemoryUsage }}% -
-
- {{end}} -
- - \ No newline at end of file + {{end}} +
+

+

Tasks

+
+ + + + + + + + + + {{range $t := .Tasks}} + + + + + + + + + {{end}} +
IDLibraryWorkerTypeStatusFile
+ {{ $t.ID }} + + {{ $t.Library }} + + {{ $t.Worker }} + + {{ $t.Type }} + + {{ $t.Status }} + + {{ $t.File }} +
+
+{{template "tail"}} \ No newline at end of file