| 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 | {{/* The Oficina door (signin.go): rastrillo's sign-in screen, its ui |
| 10 | "signin" partial fed by auth.SigninState, drawn inside estilo's door |
| 11 | (the sky, and Fichas' mark and name at the card's head) by |
| 12 | estilo-signin-screen. One way in per page (SigninOneWay): Fichas has |
| 13 | no Home, so the way is email, with "Use a different email" under it. |
| 14 | Every state is this one template: the door, Sent, the Keymail |
| 15 | continuation (its meta refresh is in the card), a problem, the |
| 16 | refusal, and the confirm step an emailed link opens (GET /auth/verify, |
| 17 | auth's RenderConfirm), whose one Sign in button POSTs the token back |
| 18 | because a GET must spend nothing. Its buttons are rastrillo's pills. |
| 19 | |
| 20 | Or, with SignedOut set, where Sign out lands: the door's signed-out |
| 21 | page, with "Forget me on this device". |
| 22 | |
| 23 | The plain layout has no account menu: every door is drawn signed out. |
| 24 | Data: signinPage (signin.go). */}} |
| 25 | {{define "content"}} |
| 26 | {{with .Screen}}{{template "estilo-signin-screen" .}}{{else}}{{with .SignedOut}}{{template "estilo-signed-out" .}}{{end}}{{end}} |
| 27 | {{end}} |
| 28 | |