{{define "page"}} Beirut
Beirut {{if .Session.User.ID}}{{end}} {{template "language-picker" .}}
{{if eq .Section "welcome"}}{{template "welcome" .}}{{end}} {{if .Error}}{{end}} {{if .Notice}}

{{.Notice}}

{{end}} {{if eq .Section "login"}}

{{$.I18n.T "Welcome back."}}

{{$.I18n.T "New to Beirut?"}} {{$.I18n.T "Create an account"}}

{{end}} {{if eq .Section "register"}} {{if .Invitation}}

{{.Invitation.OrganizationName}}

{{end}}

{{if .Invitation}}{{$.I18n.T "Join your organisation."}}{{else}}{{$.I18n.T "Make room for a conversation."}}{{end}}

{{if not .Invitation}}{{end}}

{{$.I18n.T "Already have an account?"}} {{$.I18n.T "Sign in"}}

{{end}} {{if eq .Section "workspaces"}}

{{$.I18n.T "Your workspaces."}}

{{range .Organizations}}
{{else}}{{end}}

{{$.I18n.T "Create an organisation"}}

{{end}} {{if eq .Section "invite"}}

{{$.I18n.T "Organisation invitation"}}

{{$.I18n.T "Join your organisation."}}

{{.Invitation.OrganizationName}}

{{$.I18n.T "Invitation email"}} {{.Invitation.Email}}

{{$.I18n.T "Expires"}} {{.Invitation.ExpiresAt.Format "2006-01-02"}}

{{if .Session.User.ID}}

{{$.I18n.T "Signed in as"}} {{.Session.User.Email}}

{{else}}
{{$.I18n.T "Create an account"}}{{$.I18n.T "Sign in to accept"}}
{{end}} {{end}} {{if eq .Section "settings"}}

{{.Session.Organization.Name}}

{{$.I18n.T "Workspace settings."}}

{{$.I18n.T "Instagram"}}

{{if .Connection}}{{else}}{{end}} {{if .Admin}} {{if .Configured}}
{{else}}{{end}} {{if .Connection}}{{if eq .Connection.Status "active"}}{{end}}{{end}} {{else}}{{end}}
{{if .Admin}}

{{$.I18n.T "Your team"}}

{{if .InviteURL}}{{end}}
{{end}}
{{end}}
{{if .SourceURL}}{{end}} {{end}}