carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1{{define "apps"}}{{template "top" .}}
2{{if .Welcome}}<p class="banner">Account created — welcome! You signed up as <strong>{{.Address}}</strong>.</p>{{end}}
3{{if .Flash}}<p class="banner">{{.Flash}}</p>{{end}}
4{{if .FlashErr}}<p class="banner error">{{.FlashErr}}</p>{{end}}
5{{if .Apps}}
6<h1>{{.Account.Name}}</h1>
7<div class="tablewrap">
8<table>
9 <tr><th scope="col">App</th><th scope="col">Running at</th><th scope="col">Health</th><th scope="col">{{$.StatusCopy.ObservedLabel}}</th></tr>
10 {{range .Apps}}
11 <tr>
12 <td><a href="{{$.Nav}}/apps/{{.App}}">{{.App}}</a></td>
13 <td>{{if .URL}}<a href="https://{{.URL}}">{{.URL}}</a>{{else}}—{{end}}</td>
14 <td><span class="chip chip-health-{{.Verdict}}">{{.VerdictLabel}}</span></td>
15 <td>{{if .Deployment.Mixed}}{{$.StatusCopy.Mixed}}{{else if .Deployment.UniformVersion}}<code>{{.Deployment.UniformVersion}}</code>{{else}}—{{end}}{{if .CanaryN}} <span class="chip chip-canary">{{.CanaryN}} test version{{if ne .CanaryN 1}}s{{end}}</span>{{end}}</td>
16 </tr>
17 {{end}}
18</table>
19</div>
20{{else}}
21<h1>Welcome to {{.ConsoleName}}</h1>
22<p>The account <strong>{{.Account.Name}}</strong> is ready. No apps live here yet — claim a name below and it's yours.</p>
23{{end}}
24{{if .TrashN}}<p class="small"><a href="{{.Nav}}/trash">Trash ({{.TrashN}})</a>: deleted apps you can still
25 restore, each until the date shown there.</p>{{end}}
26<p><a class="btn" href="{{.Nav}}/apps/new">Create app</a></p>
27
28{{template "bottom" .}}{{end}}
29