a·muse

{{ if .State.User.IsEmpty }} {{.Strings.Global.log_in}}{{.Strings.Global.sign_up}} {{ else }} {{ end }}
{{if gt .Data.T.Page 1}} {{end}}
{{if lt .Data.T.Page .Data.T.Total_pages}} {{end}}
{{if or .Data.T.Results .Data.I.Results}} {{range .Data.T.Results}} {{if eq .Media_type "movie"}} {{else if eq .Media_type "person"}} {{else if eq .Media_type "tv"}} {{end}}
{{if .Poster_path}} {{else if eq .Media_type "movie"}} {{else if eq .Media_type "tv"}} {{else if eq .Media_type "person"}} {{end}}

{{.Name}}

{{if not .Release_date.IsZero}}

{{.Release_date.Year}}

{{end}} {{if eq .Media_type "tv"}}

{{$.Strings.Search.tvserie}}

{{else if eq .Media_type "movie"}}

{{$.Strings.Search.film}}

{{else if eq .Media_type "person"}}

{{$.Strings.Search.person}}

{{end}}
{{end}} {{range .Data.I.Results}} {{if eq .Type "works"}} {{else if eq .Type "humans"}} {{else if eq .Type "series"}} {{end}}
{{if .ImagePath}} {{else if eq .Type "works"}} {{else if eq .Type "humans"}} {{else if eq .Type "series"}} {{end}}

{{.Label}}

{{if eq .Type "works"}}

{{$.Strings.Search.book}}

{{else if eq .Type "humans"}}

{{$.Strings.Search.author}}

{{else if eq .Type "series"}}

{{$.Strings.Search.bookserie}}

{{end}}
{{end}}
{{$.Strings.Search.droids}}
{{if gt .Data.T.Page 1}} {{end}}
{{if lt .Data.T.Page .Data.T.Total_pages}} {{end}}
{{else if eq .Data.T.Total_pages 0}}

{{.Strings.Search.not_found_quote}}

—{{.Strings.Search.not_found_character}} ({{.Strings.Search.not_found_title}}, {{.Strings.Search.not_found_code}} {{.Strings.Search.not_found_episode}})

{{else if gt .Data.T.Page .Data.T.Total_pages}}

{{.Strings.Search.too_far_quote}}

—{{.Strings.Search.too_far_character}} ({{.Strings.Search.too_far_title}})

{{end}}