oficina / base Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "title"}}People · {{.Name}}{{end}}
2{{define "main"}}<main class="inner">
3<div class="sheet glass">
4{{template "crumb" "People"}}
5<h2>People</h2>
6<p class="lead">Everyone here can sign in to every app on {{.Name}}'s Base. Each app decides what they can do in it.</p>
7{{if .BadEmail}}<p role="status">That doesn't look like an email address.</p>
8{{end}}{{if .MailFailed}}<p role="status">The invitation wasn't sent. Try inviting them again.</p>
9{{end}}{{if .IsOwner}}<form class="invite" method="post" action="/people">
10<input class="input" type="email" name="email" placeholder="maria@acme.co" autocomplete="off" required aria-label="Teammate's email address">
11<button class="btn" type="submit">Send invite</button>
12</form>
13{{end}}<ul class="people">
14{{range .People}}<li>{{if .Joined}}<div class="face on">{{.Initial}}</div>{{else}}<div class="face off">{{.Initial}}</div>{{end}}<div class="who">{{if .Name}}{{.Name}}{{else}}{{.Email}}{{end}}{{if not .Joined}}<small>Invited. Hasn't signed in yet.</small>{{else if .Name}}<small>{{.Email}}</small>{{end}}</div><span class="tag">{{if .Owner}}Owner{{else if .Joined}}Member{{else}}Invited{{end}}</span></li>
15{{end}}</ul>
16</div>
17</main>{{end}}
18