Download this file
| 1 | {{define "title"}}Store · {{.Name}}{{end}} |
| 2 | {{define "head"}}{{if .Installing}}<meta http-equiv="refresh" content="2">{{end}}{{end}} |
| 3 | {{define "main"}}<main class="inner"> |
| 4 | <div class="sheet glass"> |
| 5 | {{template "crumb" "Store"}} |
| 6 | <h2>Store</h2> |
| 7 | <p class="lead">Apps that run on {{.Name}}'s Base. Install one and it's on Home for everyone at {{.Name}}.</p> |
| 8 | {{if .Busy}}<p role="status">This app is still installing. Try again in a moment.</p> |
| 9 | {{end}}{{range .Rows}}<div class="listing"> |
| 10 | <div class="tile glass t-{{.Tint}}">{{.IconHTML}}</div> |
| 11 | <div class="txt"><b>{{.Name}}</b><span>{{.Summary}}</span>{{if eq .State "failed"}}<span role="status">{{if .Error}}{{.Error}}{{else}}The install didn't finish.{{end}}</span>{{end}}</div> |
| 12 | {{if eq .State "installing"}}<div class="actions"><button class="btn installing" type="button" disabled>Installing</button></div> |
| 13 | {{else if eq .State "installed"}}<div class="actions">{{if $.IsOwner}}<a class="btn ghost" href="/store/{{.ID}}/uninstall">Uninstall</a>{{else}}<span class="tag">Installed</span>{{end}}</div> |
| 14 | {{else if $.IsOwner}}<form class="actions" method="post" action="/store/{{.ID}}/install"><button class="btn" type="submit">{{if eq .State "failed"}}Try again{{else}}Install{{end}}</button></form> |
| 15 | {{end}}</div> |
| 16 | {{end}}<p class="soon">Coming in later slices: <b>Keymail</b>, <b>Sporran</b> and the <b>Oficina</b> apps.</p> |
| 17 | </div> |
| 18 | </main>{{end}} |
| 19 | |