{{define "layout"}} Beirut {{.I18n.T "Skip to workspace"}}{{template "workspace" .}}{{end}} {{define "workspace"}}
{{if not (and (eq .Section "inbox") .Contact)}}
Beirut {{template "language-picker" .}}{{template "theme-picker" .}}
{{end}} {{if .Workspace}}
{{.Workspace.Name}} ▾
{{if .Workspace.SourceURL}}{{.I18n.T "Source code"}}{{end}}{{.I18n.T "Settings"}}
{{end}}

{{.I18n.T "Where to?"}}

{{.I18n.T "↑ ↓ to choose"}} {{.I18n.T "Enter to open"}}

{{if .Flash}}
{{.Flash}}
{{end}} {{if eq .Section "inbox"}}{{template "inbox" .}}{{else}}
{{if eq .Section "campaign-setup"}}{{template "campaign-setup" .}}{{end}} {{if eq .Section "demo-campaign"}}{{template "demo-campaign" .}}{{end}} {{if eq .Section "campaigns"}}{{if .Campaign}}{{template "review" .}}{{else}}{{template "campaigns" .}}{{end}}{{end}} {{if eq .Section "instagram"}}{{template "instagram" .}}{{end}} {{if eq .Section "channels"}}{{template "channels" .}}{{end}}
{{end}}
{{end}} {{define "workspace-links"}} {{end}} {{define "theme-picker"}}{{end}} {{define "language-picker"}}
{{end}} {{define "desk-hero"}}
{{if .Campaign}}← {{.I18n.T "Campaigns"}}{{else}}{{.I18n.T "Campaign Desk"}}{{end}}

{{if .Campaign}}{{.Campaign.Title}}{{else if eq .Section "inbox"}}{{.I18n.T "Inbox"}}{{else if eq .Section "channels"}}{{.I18n.T "Instagram"}}{{else}}{{.I18n.T "Campaigns"}}{{end}}

{{.I18n.T "Instagram"}} · {{if .LiveInstagram}}{{if .ProductionInstagram}}{{.I18n.T "Connected"}}{{else}}{{.I18n.T "Sandbox"}}{{end}}{{else}}{{if .Workspace}}{{.I18n.T "Demo replies"}}{{else}}{{.I18n.T "Simulation workspace"}}{{end}}{{end}}

{{end}} {{define "desk-link"}}hx-boost="true" hx-target="#workspace" hx-swap="outerHTML settle:0ms" hx-sync="#workspace:replace"{{end}}