mirror of
https://github.com/octoleo/restic.git
synced 2024-11-17 10:35:17 +00:00
37 lines
873 B
HTML
37 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>
|