Add Library Pages
This commit is contained in:
parent
566b9d8667
commit
d6fa1fc97a
5 changed files with 235 additions and 0 deletions
34
tmpl/library.tmpl
Normal file
34
tmpl/library.tmpl
Normal file
|
@ -0,0 +1,34 @@
|
|||
{{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"}}
|
Loading…
Add table
Add a link
Reference in a new issue