morffix/tmpl/library.tmpl
adroslice 332e0cbe5a Reworked CSS
- Split into 4 files referenced by the first
- Using MLFE and page-wide color definitions
- Improved consistency and reduced markup complexity
- Hinted more user actions
- Improved visual parsability of tables and logs
- Improved visibility of counter units
- TODO:
  - Add text selection to important fields
  - Improve button placement
  - Reindent templates
2024-05-29 15:19:21 +02:00

46 lines
No EOL
1 KiB
Cheetah

{{template "head"}}
<h2>Library {{.Library.Name}}</h2>
<p>{{if .Library.Enable}}Enabled{{else}}Disabled{{end}}</p>
<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>Status</th>
<th>Health</th>
<th>MD5</th>
<th>Updated At</th>
</tr>
{{range $f := .Files}}
<tr>
<td>
{{ $f.ID }}
</td>
<td>
{{ $f.Path }}
</td>
<td>
{{ $f.Size }}
</td>
<td>
{{ $f.Status }}
</td>
<td>
{{ $f.Health }}
</td>
<td>
{{ $f.MD5 }}
</td>
<td>
{{ $f.UpdatedAt }}
</td>
</tr>
{{end}}
</table>
</div>
{{template "tail"}}