templates
Code
Branches
CI
Releases
Discussions
Prompts
Insights
Settings
alta / internal / web / templates / index.html
Download this file
1 {{define "content"}} 2 {{template "page-header" dict "Title" "Teams" "ActionHref" "/teams/new" "ActionLabel" "New team"}} 3 {{if not .Data.Initialized}} 4 <section class="alta-box"> 5 <h2>Home's directory</h2> 6 <p>Alta's first production run initializes Home's directory, after your pre-flight confirmation (amendment §12). No team can be created before it.</p> 7 <p><a rst-btn href="/initialize">Initialize…</a></p> 8 {{range .Data.InitRuns}}<p class="alta-quiet"><a href="/runs/{{.ID}}">Initialize run {{.ID}}</a> · {{.State}}{{with .Code}} · {{describe .}}{{end}}</p>{{end}} 9 </section> 10 {{end}} 11 {{if .Data.Teams}} 12 <div rst-list> 13 {{range .Data.Teams}} 14 <div rst-row> 15 <span rst-row-main><a href="/teams/{{.Label}}"><span class="alta-label">{{.Label}}</span> {{.Name}}</a> 16 <small rst-row-sub>{{.Apps}} apps · live {{.Live}} · pending {{.Pending}}{{if .Retired}} · retired {{.Retired}}{{end}}{{if .RunID}} · <a href="/runs/{{.RunID}}">last run {{.RunState}}</a>{{with .RunWords}}: {{.}}{{end}}{{end}}</small></span> 17 </div> 18 {{end}} 19 </div> 20 {{else}} 21 {{template "empty-state" dict "Body" "No teams yet. A team is one instance of each app at <label>.<app>.oficina.works, registered with Home, with its first owner." "ActionHref" "/teams/new" "ActionLabel" "New team"}} 22 {{end}} 23 {{end}} 24