{{- /* artifacts.tmpl ~ the template is for the artifact cards. see the artifact.tmpl for the single artifact page template. */ -}} {{- define "content" }} {{- $files := index .stats.files }} {{- $years := index .stats.years}} {{- $cnt := len .records}} {{- $web := index .website }} {{- $linkWeb := gt (len $web) 0}} {{- $zoo := index .demozoo }} {{- $linkZoo := ne $zoo "0"}} {{- $sixteen := index .sixteen }} {{- $link16C := ne $sixteen ""}} {{- $scener := index .scener }} {{- $noYears := false}} {{- $unYears := index .unknownYears }} {{- $editor := index .editor}}
There {{if eq $cnt 1}}is{{else}}are{{end}} {{$files | safeHTML}}{{if ne $years ""}} from {{$years | safeHTML}}{{end}}.
{{- if or $linkZoo $link16C $linkWeb}}
{{- if $linkZoo}}
Production and member lists Demozoo{{linkSVG}}
{{- end}}
{{- if $link16C}}
ANSI and text artworks 16colors{{linkSVG}}
{{- end}}
{{- if $linkWeb}}
{{- range $web }}
{{- if and (ne .URL "") (eq .NotWorking false ) }}
{{.Name}}{{websiteIcon .URL}}
{{- end}}
{{- if and (ne .URL "") (eq .NotWorking true ) }}
{{.Name}} ex-site, {{.URL}}
{{- end}}
{{- end}}
{{- end}}
These are files from an unknown year
{{$filename}}
{{describe .Platform .Section .DateIssuedYear .DateIssuedMonth}}
{{lastUpdated .Updatedat}}
{{- if ne $attr ""}}{{$attr}}
{{- end}} {{- if eq $editor true}} {{- /* TODO use a template to only render for /editor/for-approval */ -}} {{- demozooGetLink .Filename .Filesize .WebIDDemozoo .UUID }} {{- end}} {{- linkPage .ID}} {{- linkDownload .ID .FileSecurityAlertURL.String }}{{ downloadB .Filesize}} {{- linkPreview .ID .Filename.String .Platform.String}}