oficina / memoria Public

Clone
git clone https://amadan.net/oficina/memoria

Plain git — no account needed to clone.

Download

Download this file

1{{/* The suite's door (estilo chrome): one card on the team's sky, the
2 app's mark and name at its head. chrome.css draws the card, sky.css
3 the sky; both are vendored from estilo (go run ./scripts/writeestilo)
4 and linked by the layout. The bar above it carries the brand only:
5 the corner is empty on the pages that are themselves sign-in. */}}
6{{/* The confirm step an emailed link opens on (app.renderConfirm): the
7 door with its address field taken away, and one Sign in button that
8 posts the link's token back. GET /auth/verify spends nothing; this
9 POST does. estilo has no confirm variant, so the form is drawn here
10 between estilo's own door-open and door-close. The token is the
11 link's own query value, escaped here by html/template. */}}
12{{define "content"}}{{with .Confirm}}{{template "estilo-door-open" .Door}}
13 <h1>{{.Door.Heading}}</h1>
14 {{- with .Door.Lede}}
15 <p estilo-signin-lede>{{.}}</p>
16 {{- end}}
17 <form rst-form estilo-signin-form method="post" action="{{.Action}}">
18 <input type="hidden" name="token" value="{{.Token}}">
19 <div rst-form-foot><button rst-btn="primary" type="submit" autofocus>{{.Door.Submit}}</button></div>
20 </form>
21{{template "estilo-door-close"}}{{else with .Sent}}{{template "estilo-signin-sent" .}}{{else with .SignedOut}}{{template "estilo-signed-out" .}}{{else}}{{template "estilo-signin" .Door}}{{end}}{{end}}
22