{{if .PageIsSettingsHooksEdit}}

{{.locale.Tr "repo.settings.recent_deliveries"}} {{if .Permission.IsAdmin}}
{{end}}

{{range .History}}
{{if .IsSucceed}} {{svg "octicon-check"}} {{else}} {{svg "octicon-alert"}} {{end}} {{.UUID}}
{{.DeliveredString}}
{{if .RequestInfo}}
{{$.locale.Tr "repo.settings.webhook.headers"}}
Request URL: {{.RequestInfo.URL}}
Request method: {{if .RequestInfo.HTTPMethod}}{{.RequestInfo.HTTPMethod}}{{else}}POST{{end}}
{{range $key, $val := .RequestInfo.Headers}}{{$key}}: {{$val}}
{{end}}
{{$.locale.Tr "repo.settings.webhook.payload"}}
{{.PayloadContent}}
{{else}} - {{end}}
{{if .ResponseInfo}}
{{$.locale.Tr "repo.settings.webhook.headers"}}
{{range $key, $val := .ResponseInfo.Headers}}{{$key}}: {{$val}}
{{end}}
{{$.locale.Tr "repo.settings.webhook.body"}}
{{.ResponseInfo.Body}}
{{else}} - {{end}}
{{end}}
{{end}}