a·muse

{{if gt .Data.Page 1}} {{end}}
{{if lt .Data.Page .Data.Total_pages}} {{end}}
{{if .Data.Results}} {{range .Data.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 gt .Release_date.Year 1}}

{{.Release_date.Year}}

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

{{$.Strings.Search.series}}

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

{{$.Strings.Search.film}}

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

{{$.Strings.Search.person}}

{{end}}
{{end}}
{{$.Strings.Search.droids}}
{{if gt .Data.Page 1}} {{end}}
{{if lt .Data.Page .Data.Total_pages}} {{end}}
{{else if eq .Data.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.Page .Data.Total_pages}}

{{.Strings.Search.too_far_quote}}

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

{{end}}