{{- /* artifactinfo.tmpl ~ Artifact information template. */ -}} {{- define "artifactinfo" -}} {{- $content := index . "content"}} {{- $alert := index . "alertURL"}} {{- $checksum := index . "checksum"}} {{- $preview := index . "linkpreview"}} {{- $previewTip := index . "linkpreviewTip"}} {{- $jsdos6 := index . "jsdos6"}} {{- $writers := trimSpace (index . "writers") }} {{- $artists := trimSpace (index . "artists") }} {{- $readmeL := index . "readmeLatin1"}} {{- $readmeLines := index . "readmeLines"}} {{- $readmeRows := index . "readmeRows"}} {{- $programmers := trimSpace (index . "programmers") }} {{- $musicians := trimSpace (index . "musicians") }} {{- $demozoo := (index . "demozoo")}} {{- $pouet := (index . "pouet")}} {{- $sixteenColors := trimSpace (index . "sixteenColors")}} {{- $youtube := trimSpace (index . "youtube")}} {{- $github := trimSpace (index . "github")}} {{- $comment := trimSpace (index . "comment")}} {{- $mimetype := mimeMagic (index . "magic")}} {{- $noDownload := index . "noDownload"}} {{- $contentDesc := index . "contentDesc"}} {{- $lastModAgo := index . "lastmodifiedAgo"}} {{- $lastMod := index . "lastmodified"}} {{- $filesize := index . "filesize"}} {{- $filebyte := index . "filebyte"}} {{- $filename := index . "filename"}} {{- $download := index . "download"}} {{- $downloadText := print "Download " print $filesize}} {{- $fileEntry := index . "filentry"}} {{- if $noDownload}}{{$downloadText = print `` print $downloadText print ""}}{{end}} {{- /* [FILENAME] Content */}} {{- if $content}}
{{- end}} {{- /* Artifact file download link */}}{{$comment}}
| Download info | {{$filesize}} {{- if ne "" $contentDesc}}, {{$contentDesc}}{{end -}} |
|---|---|
| Last modification | {{$lastMod}} |
| Mime type | {{$mimetype}} |
| Text dimensions | {{$readmeLines}} x {{$readmeRows}} |
| Writers | {{fmtRoles $writers}} |
| Artists | {{fmtRoles $artists}} |
| Programmers | {{fmtRoles $programmers}} |
| Musicians | {{fmtRoles $musicians}} |
| Pouët reviews | ? stars ? votes {{$pouet}} |
| Demozoo | Downloads, links and extras{{linkSVG}} |
| 16colors | Downloads, links and extras{{linkSVG}} |
| YouTube | Watch on YouTube{{linkSVG}} |
| GitHub | {{$github}}{{linkSVG}} |
| Artifact | {{$fileEntry | safeHTML}} |