morffix/tmpl/library.tmpl
2024-05-05 01:31:45 +02:00

34 lines
No EOL
742 B
Cheetah

{{template "head"}}
<h2>Library {{.Library.Name}}</h2>
<p>Enabled {{.Library.Enable}}
<h2>Files</h2>
<form method="POST" action="/scan/{{.Library.ID}}">
<input value="Scan" type="submit">
</form>
<div class="file-list">
<table>
<tr>
<th>ID</th>
<th>Path</th>
<th>Size</th>
<th>Missing</th>
</tr>
{{range $f := .Files}}
<tr>
<td>
{{ $f.ID }}
</td>
<td>
{{ $f.Path }}
</td>
<td>
{{ $f.Size }}
</td>
<td>
{{ $f.Missing }}
</td>
</tr>
{{end}}
</table>
</div>
{{template "tail"}}