some improvements

This commit is contained in:
Lunny Xiao 2024-08-21 19:49:09 -07:00
parent b4eac75dba
commit 359e660f0f
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -119,7 +119,7 @@
{{ctx.Locale.TrN .Issue.NumComments "repo.issues.num_comments_1" "repo.issues.num_comments" .Issue.NumComments}}
</span>
{{if .MaybeFixed}}
{{$fixedStr:= printf "<a href=\"%s\">#%d</a>" .MaybeFixed.Issue.Link .MaybeFixed.Index}}
{{$fixedStr := printf "<a href=\"%s\">#%d</a>" .MaybeFixed.Issue.Link .MaybeFixed.Index}}
· <span>{{ctx.Locale.Tr "repo.issues.maybefixed" ($fixedStr|SafeHTML)}}</span>
{{end}}
{{end}}