{{define "signup"}}
{{t "signup.sub"}}
{{t "signup.thanks"}}
{{t "signup.no_email"}}
{{th "signup.sign_in_once_approved"}}
{{/* The same page whether or not the address already had an account, so it says what to do in either case without saying which this was. */}}{{th "signup.already_had"}}
{{else}} {{if .Error}}{{.Error}}
{{end}}{{th "signup.have_account"}}
{{end}}{{.Error}}
{{end}} {{if .SSO}}{{end}} {{if .Forgot}}{{end}} {{if .SignupOpen}}{{th "login.no_account"}}
{{end}}{{.User.Email}}{{if ne .User.Name .User.Email}} ({{.User.Name}}){{end}}
{{template "nav" .Nav}}{{.Error}}
{{end}} {{if .NewKey}}{{t "profile.shown_once"}}
{{.NewKey}}
{{t "profile.store_it"}}
curl {{.BaseURL}}/v1/chat/completions \
-H "Authorization: Bearer {{.NewKey}}" \
-H "Content-Type: application/json" \
-d '{"model": "{{.ExampleModel}}", "messages": [{"role":"user","content":"hello"}]}'
{{end}}
{{with .Connect}}
{{th "connect.shown_once"}}
{{if .Command}}{{if eq .Tool "codex"}}{{t "connect.command_note_codex"}}{{else}}{{t "connect.command_note"}}{{end}}
{{.Command}}{{.Body}}
| {{.Label}} | {{.Value}} |
|---|
{{if eq .Tool "codex"}}{{.Run}}{{else}}{{.Run}}{{end}}
{{.}}
{{end}}{{t "connect.intro"}}
{{th "connect.own_code"}}
| {{t "profile.col.name"}} | {{t "profile.col.key"}} | {{t "profile.col.spends_against"}} | {{t "profile.col.created"}} | {{t "profile.col.last_used"}} | {{t "profile.col.state"}} | |
|---|---|---|---|---|---|---|
| {{.Name}} | {{.Prefix}} |
{{if .ProjectID}}{{or (index $.Where .ProjectID) (t "profile.left_project")}}{{else}}{{t "profile.personal"}}{{end}} | {{date .CreatedAt}} | {{ago .LastUsedAt}} | {{t (print "profile.state." (state .))}} | {{if eq (state .) "active"}} {{end}} |
{{t "profile.revoke_note"}}
{{else}}{{t "profile.no_keys"}}
{{end}}{{range $i, $m := .Memberships}}{{if $i}} ยท {{end}}{{$m.Path}} {{t (print "profile.scope." $m.Scope)}}{{end}}
{{else}}{{t "profile.no_memberships"}}
{{end}}| {{t "selfuse.col.limit"}} | {{t "selfuse.col.value"}} |
|---|---|
| {{.Name}} | {{.Value}} |
{{t "selfuse.no_limits"}}
{{end}} {{else}}{{t "selfuse.nowhere"}}
{{end}}{{t "selfuse.strictest"}}
{{t "profile.password_changed"}}
{{end}} {{if .PasswordError}}{{.PasswordError}}
{{end}}{{t "profile.password_note"}}
{{.Error}}
{{end}} {{if .Sent}}{{t "forgot.sent"}}
{{else if .NoMail}}{{th "forgot.no_mail"}}
{{else}}{{t "forgot.sub"}}
{{end}}{{.Error}}
{{end}} {{if .Done}}{{t "reset.done"}}
{{else if .Bad}}{{t "reset.bad"}}
{{else}} {{end}}