{{define "instagram"}}

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

{{$.I18n.T "Choose what supporters should comment and what private reply they receive."}}

{{if not .ProductionInstagram}}
{{$.I18n.T "Sandbox test · only new comments from @%s on your selected @test.omar.test post can trigger a message." .JoinSettings.TestUsername}}
{{end}} {{template "join-status" .}} {{range .JoinRules}}

{{if .Enabled}}{{$.I18n.T "Watching for new comments"}}{{else}}{{$.I18n.T "Paused"}}{{end}}

{{$.I18n.T "Open the selected Instagram post ↗"}}
{{template "instagram-reply-fields" (replyFields . $.I18n)}}
{{if .Enabled}}

{{$.I18n.T "Pause before editing the phrase or reply."}}

{{end}}
{{else}}{{if .ProductionInstagram}}

{{$.I18n.T "Choose a post to get started"}}

{{$.I18n.T "New campaign"}}
{{else}}

{{$.I18n.T "Set up a comment reply"}}

{{$.I18n.T "The rule stays paused until you turn it on."}}

{{template "instagram-reply-fields" (replyFields .NewJoinRule $.I18n)}}
{{end}}{{end}}

{{$.I18n.T "Only comments made after turning the rule on are eligible. Each comment gets at most one attempt. Follow-up messages require the person to reply first."}}

{{end}} {{define "instagram-reply-fields"}}

{{$.I18n.T "The whole comment must match. Capitalisation and surrounding spaces are ignored."}}

{{end}} {{define "join-status"}}

{{$.I18n.T .CommentStatus}}

{{range .JoinRules}}

{{$.I18n.T "%d accepted by Instagram · %d unconfirmed · %d rejected" .Sent .Uncertain .Failed}}

{{end}}
{{end}}