{{if .PageIsSettingsHooksEdit}}

{{.i18n.Tr "repo.settings.recent_deliveries"}} {{if .IsRepositoryAdmin}}
{{end}}

{{range .History}}
{{if .IsSucceed}} {{else}} {{end}} {{.UUID}}
{{.DeliveredString}}
{{if .RequestInfo}}
{{$.i18n.Tr "repo.settings.webhook.headers"}}
Request URL: {{.URL}}
Request method: POST
{{ range $key, $val := .RequestInfo.Headers }}{{$key}}: {{$val}}
{{end}}
{{$.i18n.Tr "repo.settings.webhook.payload"}}
{{.PayloadContent}}
{{else}} N/A {{end}}
{{if .ResponseInfo}}
{{$.i18n.Tr "repo.settings.webhook.headers"}}
{{ range $key, $val := .ResponseInfo.Headers }}{{$key}}: {{$val}}
{{end}}
{{$.i18n.Tr "repo.settings.webhook.body"}}
{{.ResponseInfo.Body}}
{{else}} N/A {{end}}
{{end}}
{{end}}