{{define "content"}}{{$t := .D.T}}{{$admin := .D.Admin}}{{$base := "/inbox/"}}{{if $admin}}{{$base = "/admin/messages/"}}{{end}}

← {{if $admin}}Messages{{else}}Inbox{{end}}

{{$t.Subject}}

{{template "tstatus" $t.Status}} {{.D.Label}} {{if $admin}}with {{$t.User}}{{end}} {{if $t.App}}about {{$t.App}}{{end}} · begun {{datetime $t.Created}}{{if $admin}} · {{if $t.Assigned}}assigned to {{$t.Assigned}}{{else}}assigned to nobody{{end}}{{end}}

{{if $t.Request}}{{$q := $t.Request}}
The request: {{if .D.SizeReq}}the largest {{if eq $q.Limit "source"}}source archive{{else}}package{{end}} of {{size $q.Bytes}} for {{if $q.App}}the app {{$q.App}}{{else}}all apps of the account{{end}} {{else if eq $t.Reason "size-limit"}}the largest {{if eq $q.Limit "source"}}source archive{{else}}package{{end}} of {{size $q.Bytes}} for {{if $q.App}}the app {{$q.App}}{{else}}all your apps{{end}} {{else}}no source code archive for {{if $q.App}}the app {{$q.App}}{{else}}all apps of the account{{end}}{{end}} {{if $t.Granted}}granted{{end}} {{if $admin}}{{$l := .D.Limits}}

In force now for {{if .D.GrantApp}}{{.D.GrantApp.ID}}{{else}}{{.D.Owner.Username}}'s new apps and apps without a setting of their own{{end}}: largest package {{size $l.MaxPkg}} ({{origin $l.PkgFrom}}), largest source archive {{size $l.MaxSrc}} ({{origin $l.SrcFrom}}), source archive {{if $l.SrcRequired}}required{{else}}not required{{end}} ({{origin $l.ReqFrom}}).

{{if .D.CanGrant}}
{{if .D.SizeReq}}{{end}} Sets the override for {{if $q.App}}the app{{else}}the developer{{end}}, says so in a reply, and records it in the audit log.
{{else if and .D.SourceReq (not .Set.AllowSourceExemptions) (not $t.Granted)}}

Exemptions from the source requirement are switched off in the settings.

{{end}} {{end}}
{{end}} {{if and $admin .D.DevReq}}
The request: to submit apps. {{.D.Owner.Username}} is a {{.D.Owner.Role}}. {{if .D.CanGrant}}
{{end}}
{{end}}
{{range .D.Msgs}}{{if .System}}

{{.Body}} · {{datetime .Date}}

{{else}}
{{.Author}}{{if .FromAdmin}}administrator{{end}}{{datetime .Date}}
{{linkify .Body}}
{{end}}{{end}}
{{if or $admin (ne $t.Status "closed")}}

Plain text, up to {{.D.MaxBody}} characters; web addresses become links.

{{if ne $t.Status "closed"}}{{end}} {{if $admin}}{{if eq $t.Status "closed"}}{{end}} {{if eq $t.Assigned .User.Username}}{{else}}{{end}}{{end}}
{{else}}

This conversation is closed. Begin a new one if there is more to say.

{{end}} {{end}}