summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorkolaente <k@knt.li>2020-05-15 21:02:46 +0200
committerGitHub <noreply@github.com>2020-05-15 22:02:46 +0300
commitc72a471215a77b1bd6d117f4df5bbdcc858d25a3 (patch)
treec0dcdf859a4d91b82ddc5d84a40af5a32bed4b77 /templates
parent57217cabe34e2a01fbb3cb93bd93fbefa38fee91 (diff)
downloadgitea-c72a471215a77b1bd6d117f4df5bbdcc858d25a3.tar.gz
gitea-c72a471215a77b1bd6d117f4df5bbdcc858d25a3.zip
Fix webhook template when validation errors occur (#11421)
Signed-off-by: kolaente <k@knt.li>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/webhook/matrix.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/webhook/matrix.tmpl b/templates/repo/settings/webhook/matrix.tmpl
index 032537dffc..229559a1f6 100644
--- a/templates/repo/settings/webhook/matrix.tmpl
+++ b/templates/repo/settings/webhook/matrix.tmpl
@@ -4,7 +4,7 @@
{{.CsrfTokenHtml}}
<div class="required field {{if .Err_HomeserverURL}}error{{end}}">
<label for="homeserver_url">{{.i18n.Tr "repo.settings.matrix.homeserver_url"}}</label>
- <input id="homeserver_url" name="homeserver_url" type="text" value="{{.MatrixHook.HomeserverURL}}" autofocus required>
+ <input id="homeserver_url" name="homeserver_url" type="url" value="{{.MatrixHook.HomeserverURL}}" autofocus required>
</div>
<div class="required field {{if .Err_Room}}error{{end}}">
<label for="room_id">{{.i18n.Tr "repo.settings.matrix.room_id"}}</label>