| 1 | {{define "title"}}{{.Title}}{{end}} |
| 2 | |
| 3 | {{/* The door's stylesheets, only here: no other page draws it. */}} |
| 4 | {{define "head"}} |
| 5 | <link rel="stylesheet" href="{{asset "static/sky.css"}}"> |
| 6 | <link rel="stylesheet" href="{{asset "static/chrome.css"}}"> |
| 7 | {{end}} |
| 8 | |
| 9 | {{/* Every state is the suite's door (estilo chrome): one card on the sky, |
| 10 | Mapa's mark and name at its head. Data: signinPage (door.go). */}} |
| 11 | {{define "content"}} |
| 12 | {{with .Continue}} |
| 13 | {{/* The keymail continuation. A document navigating is not the sign-in |
| 14 | form's redirect chain, so form-action 'self' stays as strict as it |
| 15 | was. The meta refresh needs no script; the link is the fallback. */}} |
| 16 | <meta http-equiv="refresh" content="0;url={{.ContinueURL}}"> |
| 17 | {{template "estilo-door-open" .Door}} |
| 18 | <h1>Continuing to keymail</h1> |
| 19 | <p estilo-signin-body>Continuing to keymail to confirm it's you.</p> |
| 20 | <p><a rst-btn="primary" href="{{.ContinueURL}}">Continue to keymail</a></p> |
| 21 | {{template "estilo-door-close"}} |
| 22 | {{else}}{{with .Confirm}} |
| 23 | {{/* The emailed link's page: it spends nothing until this POST. */}} |
| 24 | {{template "estilo-door-open" .Door}} |
| 25 | <h1>{{.Heading}}</h1> |
| 26 | <form rst-form method="post" action="{{.Action}}"> |
| 27 | <input type="hidden" name="token" value="{{.Token}}"> |
| 28 | <div rst-form-foot><button rst-btn="primary" type="submit" autofocus>{{.Submit}}</button></div> |
| 29 | </form> |
| 30 | {{template "estilo-door-close"}} |
| 31 | {{else}}{{with .Sent}} |
| 32 | {{template "estilo-signin-sent" .}} |
| 33 | {{else}} |
| 34 | {{template "estilo-signin" .Form}} |
| 35 | {{end}}{{end}}{{end}} |
| 36 | {{end}} |
| 37 | |