oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{/* The sign-in door (package door): its own document, with no bar, nav
2 or account, so every door is drawn signed out, even for a session it
3 has just refused. estilo's door draws the suite's sky and Equipo's mark
4 and name around the card.
5
6 With Screen, rastrillo's sign-in screen (its ui "signin" partial over
7 auth.SigninState) inside the door (estilo-signin-screen): the one way
8 in, Other ways to sign in, Sent, the Keymail continuation, a problem,
9 the refusal, and the confirm step an emailed link opens. The tab title
10 is rastrillo's for the same state ("Sign in to Equipo").
11
12 With SignedOut, where Sign out lands: estilo-signed-out's card, with
13 Oficina ID's own sign-out as a quiet action after a Home sign-in
14 (HomeSignout). Without HomeSignout the card is estilo-signed-out's,
15 byte for byte (door_test.go). */}}
16{{define "layout"}}<!doctype html>
17<html lang="en">
18<head>
19<meta charset="utf-8">
20<meta name="viewport" content="width=device-width, initial-scale=1">
21<title>{{with .Screen}}{{template "estilo-signin-screen-title" .}}{{else}}{{.SignedOut.Title}}{{end}}</title>
22<link rel="stylesheet" href="{{asset "static/tokens.css"}}">
23<link rel="stylesheet" href="{{asset "static/theme.css"}}">
24<link rel="stylesheet" href="{{asset "static/estilo/chrome.css"}}">
25<link rel="stylesheet" href="{{asset "static/estilo/sky.css"}}">
26<script defer src="{{asset "static/rastrillo.js"}}"></script>
27<script defer src="{{asset "static/fiesta.js"}}"></script>
28<script defer src="{{asset "static/busy.js"}}"></script>
29{{iconAssets}}
30</head>
31<body>
32<a rst-skip href="#main">{{T "rastrillo.ui.shell_skip"}}</a>
33<main rst-page id="main">
34{{with .Screen}}{{template "estilo-signin-screen" .}}{{else}}{{template "equipo-signed-out" .}}{{end}}
35</main>
36</body>
37</html>
38{{end}}
39{{define "equipo-signed-out"}}{{if .HomeSignout}}{{with .SignedOut}}{{template "estilo-door-open" .}}
40 <h1>{{.Heading}}</h1>
41 <p estilo-signin-body>{{.Body}}</p>
42 {{- with .Link}}
43 <p><a rst-btn="primary" estilo-signin-action href="{{.Href}}">{{.Label}}</a></p>
44 {{- end}}
45 <p><a rst-btn="ghost" estilo-signin-action="quiet" href="{{$.HomeSignout}}">{{copy "id.home_signout"}}</a></p>
46 {{- with .Forget}}
47 <form estilo-signin-forget method="post" action="{{.Action}}">
48 {{- with .Return}}
49 <input type="hidden" name="return_to" value="{{.}}">
50 {{- end}}
51 {{- range .Hidden}}
52 <input type="hidden" name="{{.Name}}" value="{{.Value}}">
53 {{- end}}
54 <button rst-btn="ghost" type="submit">{{.Text}}</button>
55 </form>
56 {{- end}}
57{{template "estilo-door-close"}}{{end}}{{else}}{{template "estilo-signed-out" .SignedOut}}{{end}}{{end}}
58