From a463dac5d16c9f678d8852f56f2f6f802fff118c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Mon, 13 Feb 2023 14:51:24 +0100 Subject: [PATCH] Revert "Fixes accessibility of empty repository commit status (#22632)" This reverts commit 638e6160e84ac4625af35f4e473a8a8610ca06df. Refs: https://codeberg.org/forgejo/forgejo/issues/361 --- templates/repo/commit_statuses.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/commit_statuses.tmpl b/templates/repo/commit_statuses.tmpl index 4fe644ff0a..d682709082 100644 --- a/templates/repo/commit_statuses.tmpl +++ b/templates/repo/commit_statuses.tmpl @@ -1,4 +1,4 @@ -{{if eq (len .Statuses) 1}}{{$status := index .Statuses 0}}{{if $status.TargetURL}}{{template "repo/commit_status" .Status}}{{end}}{{end}} +{{template "repo/commit_status" .Status}}
{{range .Statuses}}