go-watch/templates/backup/test.html

43 lines
No EOL
1 KiB
HTML

{{define "title"}}
GoWatch Backups
{{end}}
{{define "content"}}
<div class="container row">
<div class="row h3 justify-content-center">
Backups
</div>
{{ if .Error }}
<div class="row h3 justify-content-center text-danger">
{{ .Error }}
</div>
{{ end }}
<table class="table table-striped table-hover">
<thead>
<tr class="table-dark">
<th>File</th>
<th>Test</th>
<th>Restore</th>
</tr>
</thead>
<tbody>
{{ range $i, $backup := .Backups }}
<tr>
<td class="h5">{{ $backup }}</td>
<td>
<a class="btn btn-success">
Test
</a>
</td>
<td>
<a class="btn btn-danger">
Restore
</a>
</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
{{end}}