Add line-through for deleted branch comment

This commit is contained in:
Lunny Xiao 2024-11-13 16:22:54 -08:00
parent 7ce388f740
commit d139e94b0e
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 1 deletions

View File

@ -231,7 +231,8 @@
{{template "shared/user/avatarlink" dict "user" .Poster}}
<span class="text grey muted-links">
{{template "shared/user/authorlink" .Poster}}
{{ctx.Locale.Tr "repo.issues.delete_branch_at" .OldRef $createdStr}}
{{ $oldRef := HTMLFormat `<span class="tw-line-through">%s</span>` .OldRef }}
{{ctx.Locale.Tr "repo.issues.delete_branch_at" $oldRef $createdStr}}
</span>
</div>
{{else if eq .Type 12}}