oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1{{define "up"}}/journey{{end}}
2{{define "up-label"}}{{copy "nav.journey"}}{{end}}
3{{define "content"}}<h1>{{copy "task.plan"}}</h1>{{template "region:activity" .}}{{end}}
4{{define "region:activity"}}<div id="activity" {{.Live.Attrs .Topic}}>{{with .TaskView}}
5{{template "task-card" .}}
6<p>{{.Task.ReviewRef}}</p><p>{{.Task.MergeOwner}}</p>{{if .MergeReference}}<p>{{.MergeReference}}</p>{{end}}
7{{if .CanStopOldRunner}}<form method="post" action="/tasks/{{.Task.ID}}/old-runner-stopped"><p>{{copy "task.old_runner_stopped.help"}}</p><button rst-btn type="submit">{{copy "task.old_runner_stopped"}}</button></form>{{end}}
8{{if .CanCancel}}<form method="post" action="/tasks/{{.Task.ID}}/cancel"><button rst-btn type="submit">{{copy "task.cancel"}}</button></form>{{end}}
9{{if .CanMerge}}<a rst-btn href="/tasks/{{.Task.ID}}/merge">{{copy "task.merge"}}</a>{{end}}
10{{if eq .Task.Kind "rendered_change"}}<a rst-btn href="/tasks/{{.Task.ID}}/rendered-change">{{copy "evidence.render_approval"}}</a>{{end}}
11<h2>{{copy "task.selected"}}</h2>{{range .Steps}}<p>{{copy (printf "plan.action.%s" .Action)}}: {{.Model}} {{.Account}}</p>{{if .Actual}}<p>{{copy "task.actual"}}: {{.Actual}}</p>{{end}}{{if .AllowanceKnown}}<p>{{copy "usage.allowance"}}: {{.AllowanceRemaining}}</p>{{else}}{{if .Model}}<p>{{copy "usage.allowance_unknown"}}</p>{{end}}{{end}}{{template "isolation-history" .Isolation}}{{end}}
12<h2>{{copy "budget.usage"}}</h2>{{if .UsageKnown}}<p>{{copy "usage.counted_turns"}}: {{.CountedTurns}}</p><p>{{copy "usage.tokens"}}: {{.InputTokens}} / {{.OutputTokens}}</p>{{else}}<p>{{copy "usage.unknown"}}</p>{{end}}
13<h2>{{copy "task.questions"}}</h2>{{range .Questions}}<section equipo-card><pre>{{.Text}}</pre><p>{{copy (printf "question.%s" .State)}}</p>{{if .CanAnswer}}<a rst-btn href="/tasks/{{$.TaskView.Task.ID}}/questions/{{.ID}}">{{copy "task.answer"}}</a>{{end}}</section>{{end}}
14<h2>{{copy "task.evidence"}}</h2>{{range .Evidence}}<section equipo-card><p>{{.Role}} {{.Hash}}</p>{{if .Unconfined}}<p>{{copy "isolation.unconfined"}}</p>{{end}}<p>{{.Actual}}</p>{{template "isolation-history" .Isolation}}<pre>{{.Detail}}</pre></section>{{end}}
15{{range .Logs}}<section equipo-card>{{if .Unconfined}}<p>{{copy "isolation.unconfined"}}</p>{{end}}<p>{{.Actual}}</p>{{template "isolation-history" .Isolation}}<pre>{{.Detail}}</pre></section>{{end}}
16{{end}}</div>{{end}}
17
18{{define "isolation-history"}}{{template "trial-label" .}}{{if .ObservedTuples}}<details><summary>{{copy "task.provenance"}}</summary>{{range .ObservedTuples}}<p>{{.Provider}} {{.ProviderVersion}} / {{if .LauncherVersion}}{{.LauncherVersion}} / {{.BwrapVersion}} / {{.PolicyVersion}}{{else}}{{.PaseoVersion}}{{end}} / {{.IsolationConfigHash}}</p>{{end}}<p>{{copy "isolation.acknowledgements"}}: {{range .AcknowledgementIDs}}{{.}} {{end}}</p></details>{{end}}{{end}}
19