{{- /* artifactedit.tmpl ~ Edit a single artifact file on record. */ -}} {{- define "artifactedit" -}} {{- if eq false (index . "editor")}}{{/* render nothing */}}{{else}} {{- $faSize := "fa-fw fa-2x" -}} {{- $delay := "500ms" }} {{- $lDelay := "1s"}} {{- $hundred := "100"}} {{- $oneK := "1024" }} {{- $key := index . "modID"}} {{- $unid := index . "unid"}} {{- $record := index . "modOnline"}} {{- $rel1 := index . "modReleaser1"}} {{- $rel2 := index . "modReleaser2"}} {{- $title := index . "modTitle"}} {{- $filename := index . "filename"}} {{- $os := index . "modOS"}} {{- $tag := index . "modTag"}} {{- $dateYear := index . "modYear"}} {{- $dateMonth := index . "modMonth"}} {{- $dateDay := index . "modDay"}} {{- $lastMod := index . "modLastMod"}} {{- $lmYear := index . "modLMYear"}} {{- $lmMonth := index . "modLMMonth"}} {{- $lmDay := index . "modLMDay"}} {{- $writers := index . "writers"}} {{- $artists := index . "artists"}} {{- $youtube := index . "youtube"}} {{- $sixteen := index . "sixteenColors"}} {{- $demozoo := index . "demozoo"}} {{- $pouet := index . "pouet"}} {{- $github := index . "github"}} {{- $comment := index . "comment"}} {{- $relations := index . "modRelations"}} {{- $websites := index . "modWebsites"}} {{- $programmers := index . "programmers"}} {{- $musicians := index . "musicians"}} {{- $virusTotal := index . "virusTotal"}} {{- $previewImg := recordImgSample $unid}} {{- $thumbImg := recordThumbSample $unid}} {{- $linkExamples := recordLinkPreviews $youtube $demozoo $pouet $sixteen $github $relations $websites | safeHTML }} {{- $replace := "refresh the page to see the changes"}} {{- $hxClassification := "[name='artifact-editor-categories'],[name='artifact-editor-operatingsystem'],[name='artifact-editor-key']"}} {{- /* Artifact metadata editor */}} {{- end}} {{- end}}