{{define "playlist_grid"}} {{ if .IsLocalColPage }}
本地歌单(共 {{ len .Playlists }} 个)
{{ end }} {{ if .Playlists }}
找到 {{ .TotalCount }} {{ if eq .SearchType "album" }}张专辑{{ else }}个歌单{{ end }} {{ if gt .TotalCount 0 }}
当前第 {{ .Page }} / {{ .TotalPages }} 页,显示 {{ .PageStart }} - {{ .PageEnd }} / {{ .TotalCount }}
{{ end }}
{{ range .Playlists }} {{ $detailURL := playlistDetailURL $.Root $.SearchType . }} {{ $collectionKind := playlistExtraValue . "collection_kind" }} {{ $contentType := playlistExtraValue . "content_type" }} {{ $remoteSource := playlistExtraValue . "remote_source" }} {{ $editable := playlistExtraValue . "editable" }}
{{ if eq .Source "local" }} {{ if eq $collectionKind "imported" }}外部导入{{ else }}自建歌单{{ end }} {{ else }} {{ .Source }} {{ end }}
{{ .Name }} {{ if .Link }} {{ end }}
{{ .Creator }}
{{ if and (eq .Source "local") (eq $collectionKind "imported") }}
{{ if eq $contentType "album" }}导入专辑{{ else }}导入歌单{{ end }}{{ if $remoteSource }} · {{ $remoteSource }}{{ end }}
{{ end }}
共 {{ .TrackCount }} 首
{{ if eq .Source "local" }}
{{ if eq $editable "true" }} {{ end }}
{{ else if or (eq $.SearchType "playlist") (eq $.SearchType "album") }} {{ end }}
{{ end }}
{{ if gt .TotalPages 1 }}
第 {{ .Page }} / {{ .TotalPages }} 页 PgUp / PgDn
{{ end }} {{end}} {{end}}