Fix sort persistance
This commit is contained in:
parent
6c50fb31e0
commit
592d811d5d
2 changed files with 103 additions and 103 deletions
184
app/rice-box.go
184
app/rice-box.go
File diff suppressed because one or more lines are too long
|
@ -31,17 +31,17 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{ range $m := .Playlist }}
|
{{ range $m := .Playlist }}
|
||||||
{{ if eq $m.ID $playing.ID }}
|
{{ if eq $m.ID $playing.ID }}
|
||||||
<a href="/v/{{ $m.ID }}" class="playing">
|
<a href="/v/{{ $m.ID }}?sort={{ $.Sort }}" class="playing">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="/v/{{ $m.ID }}">
|
<a href="/v/{{ $m.ID }}?sort={{ $.Sort }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<img src="/t/{{ $m.ID }}">
|
<img src="/t/{{ $m.ID }}">
|
||||||
<div>
|
<div>
|
||||||
<h1>{{ $m.Title }}</h1>
|
<h1>{{ $m.Title }}</h1>
|
||||||
<h2>{{ $m.Views }} views • {{ $m.Modified }}<br />{{ $m.Size | bytes }}</h2>
|
<h2>{{ $m.Views }} views • {{ $m.Modified }}<br />{{ $m.Size | bytes }}</h2>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue