{{$isNew:=or .PageIsSettingsHooksNew .PageIsAdminDefaultHooksNew .PageIsAdminSystemHooksNew}} {{if .PageIsSettingsHooksEdit}}

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

{{range .History}}
{{if .IsSucceed}} {{svg "octicon-check"}} {{else if not .IsDelivered}} {{svg "octicon-stopwatch"}} {{else}} {{svg "octicon-alert"}} {{end}} {{.UUID}}
{{TimeSince .Delivered.AsTime ctx.Locale}}
{{if .RequestInfo}}
{{ctx.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}}
{{ctx.Locale.Tr "repo.settings.webhook.payload"}}
{{or .RequestInfo.Body .PayloadContent}}
{{else}} - {{end}}
{{if .ResponseInfo}}
{{ctx.Locale.Tr "repo.settings.webhook.headers"}}
{{range $key, $val := .ResponseInfo.Headers}}{{$key}}: {{$val}}
{{end}}
{{ctx.Locale.Tr "repo.settings.webhook.body"}}
{{.ResponseInfo.Body}}
{{else}} - {{end}}
{{end}}
{{end}}