more admin dashboard polish, some code cleanup
This commit is contained in:
parent
65f277b3f2
commit
c547fca0d7
27 changed files with 187 additions and 270 deletions
|
|
@ -83,9 +83,9 @@
|
|||
|
||||
{{else if .IsSingle}}
|
||||
|
||||
{{$Track := index .Tracks 0}}
|
||||
{{if $Track.Description}}
|
||||
<p id="description">{{$Track.Description}}</p>
|
||||
{{index .Tracks 0}}
|
||||
{{if .Description}}
|
||||
<p id="description">{{.Description}}</p>
|
||||
{{end}}
|
||||
|
||||
{{end}}
|
||||
|
|
@ -132,18 +132,18 @@
|
|||
{{else if .Tracks}}
|
||||
<div id="tracks">
|
||||
<h2>TRACKS</h2>
|
||||
{{range $i, $track := .Tracks}}
|
||||
{{range .Tracks}}
|
||||
<details>
|
||||
<summary class="album-track-title">{{$track.Add $i 1}}. {{$track.Title}}</summary>
|
||||
<summary class="album-track-title">{{.Number}}. {{.Title}}</summary>
|
||||
|
||||
{{if $track.Description}}
|
||||
{{if .Description}}
|
||||
<p class="album-track-subheading">DESCRIPTION</p>
|
||||
{{$track.Description}}
|
||||
{{.Description}}
|
||||
{{end}}
|
||||
|
||||
<p class="album-track-subheading">LYRICS</p>
|
||||
{{if $track.Lyrics}}
|
||||
{{$track.GetLyricsHTML}}
|
||||
{{if .Lyrics}}
|
||||
{{.GetLyricsHTML}}
|
||||
{{else}}
|
||||
<span class="empty">No lyrics.</span>
|
||||
{{end}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue