{{define "ad_creative"}} {{if .}} {{if .IsPlaceholder}}
{{T "ad_slot.t002"}}
{{.Title}} {{.SlotKey}} {{if .SizeHint}}{{.SizeHint}}{{end}} {{if .PageHint}}{{.PageHint}}{{end}} {{.TextBody}}
{{else}}
{{T "page.admin_ads"}} {{if eq .MediaType "image"}} {{.Title}} {{else if eq .MediaType "text"}} {{.TextBody}} {{else if eq .MediaType "html"}}
{{.HTMLBody}}
{{end}}
{{end}} {{end}} {{end}} {{define "ad_slot"}} {{template "ad_creative" (index .Ads .SlotKey)}} {{end}}