36 lines
873 B
HTML
36 lines
873 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>b2 client status</title>
|
|
</head>
|
|
<body>
|
|
{{$methods := methods .}}
|
|
{{$durations := durations .}}
|
|
{{$table := table .}}
|
|
<h1>count by code</h1>
|
|
<table>
|
|
{{range $method := $methods}}
|
|
<tr>
|
|
<td>{{$method}}</td>
|
|
{{range $duration := $durations}}
|
|
<td>{{index $table $method $duration}}</td>
|
|
{{end}}
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
<h1>uploads</h1>
|
|
{{range $name, $val := .Writers}}
|
|
<h2>{{ $name }}</h2>
|
|
{{range $id, $prog := $val.Progress}}
|
|
{{inc $id}} <progress value="{{$prog}}" max="1"></progress><br />
|
|
{{end}}
|
|
{{end}}
|
|
<h1>downloads</h1>
|
|
{{range $name, $val := .Readers}}
|
|
<h2>{{ $name }}</h2>
|
|
{{range $id, $prog := $val.Progress}}
|
|
{{inc $id}} <progress value="{{$prog}}" max="1"></progress><br />
|
|
{{end}}
|
|
{{end}}
|
|
</body>
|
|
</html>
|