{{/* The chat behind "Ask Base anything": docked beside Home, and /ask. Every state's block is drawn and the one for .State shows; the panel's script moves between them. */}} {{define "ask-head"}}
{{.Question}}
{{- range .Links}}{{if eq .Rel "oficina_connect"}}{{.Label}}{{else}}{{.Label}}{{end}}
{{end}} {{- if and .Open .Options}}{{end}} {{- with .Result}}{{.}}
{{end}}Calendar, Docs, Sheets and more
{{end}} {{/* A job, a pill: its state's mark, the title and its status, and once there is something to see (ready, done) the link to it. The summary opens the job view (without scripts, in place). The cards that belong to the job hang under it while they wait on the person; once ended they are listed in its view. The panel's script draws the same (ask.js, addJob). */}} {{define "ask-job"}}{{.Result}}
{{with .Detail}}{{.}}
{{end}} {{- if and (or (eq .State "paused") (eq .State "stopped")) .CarryOn}}{{end}}{{startedText .}}
{{end}} {{- if or (eq .State "ready") (eq .State "done")}}{{with .Go}}{{.Label}}{{end}}{{end}}{{.Question}}
{{.Result}}
Sources{{range .Sources}}{{or .Title (sourceHost .URL)}}{{sourceHost .URL}}{{end}}
Set up Ask Base to start asking.
You started setting up Ask Base. Approve it to start asking.
Finish setting upAsk Base needs setting up again.
Ask Base isn't answering. Try again in a minute.
Ask about your work, or ask Base to get something done.
{{with .Problem}}{{.}}
{{end}} {{/* Without a runner that can answer, the conversation shows and says so; what the person wrote stays in the field. */}}Ask Base isn't set up for you yet. Finish setting it up, then try again.
Ask Base needs an update first. Update it, then try again.
{{.Status}}