fix template
All checks were successful
/ release (push) Successful in 31s

This commit is contained in:
speatzle 2024-10-08 12:36:03 +02:00
parent 7d037be106
commit b6c22df6f1

View file

@ -2,9 +2,9 @@
<h2>Stats</h2> <h2>Stats</h2>
<label for="library">Library:</label> <label for="library">Library:</label>
<select id="library" name="library" onchange="setLibrary(this.value)" class="short-button"> <select id="library" name="library" onchange="setLibrary(this.value)" class="short-button">
<option {{if e .SelectedLibrary "" }} selected {{end}}value="">ALL</option> <option {{if eq .SelectedLibrary "" }} selected {{end}}value="">ALL</option>
{{range $l := .Libraries}} {{range $l := .Libraries}}
<option {{if e .SelectedLibrary $l.ID }} selected {{end}}value="{{$l.ID}}">{{$l.Name}}</option> <option {{if eq .SelectedLibrary $l.ID }} selected {{end}}value="{{$l.ID}}">{{$l.Name}}</option>
{{end}} {{end}}
</select> </select>
<div class="stats"> <div class="stats">