mirror of
1
Fork 0

Revert "Fixes accessibility of empty repository commit status (#22632)"

This reverts commit 638e6160e8.

Refs: https://codeberg.org/forgejo/forgejo/issues/361
This commit is contained in:
Loïc Dachary 2023-02-13 14:51:24 +01:00
parent f320204ba2
commit a463dac5d1
No known key found for this signature in database
GPG Key ID: 992D23B392F9E4F2
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{{if eq (len .Statuses) 1}}{{$status := index .Statuses 0}}{{if $status.TargetURL}}<a class="ui link commit-statuses-trigger vm" href="{{$status.TargetURL}}">{{template "repo/commit_status" .Status}}</a>{{end}}{{end}}
<a class="ui link commit-statuses-trigger vm"{{if eq (len .Statuses) 1}}{{$status := index .Statuses 0}}{{if $status.TargetURL}} href="{{$status.TargetURL}}"{{end}}{{end}}>{{template "repo/commit_status" .Status}}</a>
<div class="ui commit-statuses-popup commit-statuses tippy-target">
<div class="ui relaxed list divided">
{{range .Statuses}}