{{define "content"}}{{with .Data}}

← Market

Import into the Market

{{template "fill-status" .Fill}} {{with .Result}}

{{.Added}} added, {{.Updated}} updated, {{.Skipped}} skipped (already in the Market).

{{if .Errors}}{{end}}

See the Market

{{end}}

YAML: a list of entries, or a document with an inventory: list. The old app's config.yaml works too (its applications: list).

{{if .NoAI}}Set up the AI to fill entries in. {{end}}Each entry then needs only its website, as url:, and its relationship; the AI fills in the rest, as on New entry, and they're saved straight into the Market. Entries already there, by name or website, are skipped without reading their site.

The Federated example is the 21 open source applications on a Federated Core, as partners.

{{end}}{{end}} {{define "fill-status"}}{{with .}}

Filled in from their websites

{{if .Running}}{{.Done}} of {{.Total}} done…{{else if .Stopped}}Stopped with the app after {{.Done}} of {{.Total}}: import the rest again (the ones added are skipped).{{else}}Done: {{.Count "added"}} added, {{.Count "updated"}} updated, {{.Count "skipped"}} skipped, {{.Count "failed"}} failed.{{end}} Started {{.Started.Format "2 Jan 15:04"}}.

{{if .Lines}} {{range .Lines}} {{end}}
WebsiteNameResult
{{.Site}} {{if .ID}}{{.Name}}{{else}}{{.Name}}{{end}} {{.Outcome}} {{.Note}}{{if and .Note .Filled}}; {{end}}{{if .Filled}}filled: {{range $i, $f := .Filled}}{{if $i}}, {{end}}{{$f}}{{end}}{{end}}
{{end}} {{if not .Running}}

See the Market

{{end}}
{{end}}{{end}}