Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00

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

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}}