aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/webhook/history.tmpl
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-08-31 17:58:54 +0200
committerGitHub <noreply@github.com>2022-08-31 23:58:54 +0800
commit647b2649b1600107c5fec3505db691f78b2c1e2a (patch)
treeb3bcaf968426f6ad1ba4fde3e41f3ca3224ec47e /templates/repo/settings/webhook/history.tmpl
parentc80ca94ab1de8ea3b13c1087cd7140165a11ceb7 (diff)
downloadgitea-647b2649b1600107c5fec3505db691f78b2c1e2a.tar.gz
gitea-647b2649b1600107c5fec3505db691f78b2c1e2a.zip
Make sure fmt catches all templates (#20979)
* Make sure fmt catches all templates Make's `wildcard` is not recursive so it missed many template files, fix that by using `find`. * Update Makefile
Diffstat (limited to 'templates/repo/settings/webhook/history.tmpl')
-rw-r--r--templates/repo/settings/webhook/history.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/webhook/history.tmpl b/templates/repo/settings/webhook/history.tmpl
index e99ff6a0b9..767d66114c 100644
--- a/templates/repo/settings/webhook/history.tmpl
+++ b/templates/repo/settings/webhook/history.tmpl
@@ -54,7 +54,7 @@
<h5>{{$.locale.Tr "repo.settings.webhook.headers"}}</h5>
<pre class="webhook-info"><strong>Request URL:</strong> {{.RequestInfo.URL}}
<strong>Request method:</strong> {{if .RequestInfo.HTTPMethod}}{{.RequestInfo.HTTPMethod}}{{else}}POST{{end}}
-{{ range $key, $val := .RequestInfo.Headers }}<strong>{{$key}}:</strong> {{$val}}
+{{range $key, $val := .RequestInfo.Headers}}<strong>{{$key}}:</strong> {{$val}}
{{end}}</pre>
<h5>{{$.locale.Tr "repo.settings.webhook.payload"}}</h5>
<pre class="webhook-info"><code class="json">{{.PayloadContent}}</code></pre>
@@ -65,7 +65,7 @@
<div class="ui bottom attached tab segment" data-tab="response-{{.ID}}">
{{if .ResponseInfo}}
<h5>{{$.locale.Tr "repo.settings.webhook.headers"}}</h5>
- <pre class="webhook-info">{{ range $key, $val := .ResponseInfo.Headers }}<strong>{{$key}}:</strong> {{$val}}
+ <pre class="webhook-info">{{range $key, $val := .ResponseInfo.Headers}}<strong>{{$key}}:</strong> {{$val}}
{{end}}</pre>
<h5>{{$.locale.Tr "repo.settings.webhook.body"}}</h5>
<pre class="webhook-info"><code>{{.ResponseInfo.Body}}</code></pre>