Fixed dashboard
This commit is contained in:
parent
d1c26252ac
commit
e635be5291
@ -60,7 +60,9 @@ func Get(ctx *aero.Context) string {
|
||||
}
|
||||
}, func() {
|
||||
var err error
|
||||
soundTracks, err = arn.AllSoundTracks()
|
||||
soundTracks, err = arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
|
||||
return !track.IsDraft && len(track.Media) > 0
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return
|
||||
|
@ -46,7 +46,10 @@ component Dashboard(schedule []*arn.UpcomingEpisode, posts []arn.Postable, sound
|
||||
a.widget-ui-element.ajax(href=soundTracks[i].Link())
|
||||
.widget-ui-element-text
|
||||
Icon("music")
|
||||
span(title=soundTracks[i].Title)= soundTracks[i].MainAnime().Title.Canonical
|
||||
if soundTracks[i].Title == ""
|
||||
span untitled
|
||||
else
|
||||
span= soundTracks[i].Title
|
||||
else
|
||||
.widget-ui-element
|
||||
.widget-ui-element-text
|
||||
|
Loading…
Reference in New Issue
Block a user