fix(ui): update i18n usage in comments (#8644)

Fix regression of https://codeberg.org/forgejo/forgejo/pulls/8214 (regressing v11 feature https://codeberg.org/forgejo/forgejo/pulls/6523)

Reporeted by @Andre601.

## Preview

![bug](/attachments/0e0c4703-537f-4adc-95f7-4047710522b4)

![fixed](/attachments/07bc5824-87ae-43da-92a2-8e6e9b9cf567)

## Testing
* go to https://v13.next.forgejo.org/, log in
* create repo, add some issue labels (on `./labels`)
* create issue
* add some labels to it and then close it
* observe that what you see looks more like the 2nd screenshot than the 1st screenshot

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Bug fixes
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/8644): <!--number 8644 --><!--line 0 --><!--description Zml4KHVpKTogdXBkYXRlIGkxOG4gdXNhZ2UgaW4gY29tbWVudHM=-->fix(ui): update i18n usage in comments<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8644
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Robert Wolff <mahlzahn@posteo.de>
Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Co-committed-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
0ko 2025-07-24 07:17:11 +02:00 committed by Earl Warren
commit 87a7bf2436

View file

@ -721,18 +721,18 @@
<li> <li>
<span class="badge tw-bg-green tw-text-white">{{svg "octicon-dot-fill"}}</span> <span class="badge tw-bg-green tw-text-white">{{svg "octicon-dot-fill"}}</span>
{{if .Issue.IsPull}} {{if .Issue.IsPull}}
{{ctx.Locale.Tr "repo.pulls.reopened_at" "" ""}} {{ctx.Locale.Tr "repo.pulls.reopened_at" ""}}
{{else}} {{else}}
{{ctx.Locale.Tr "repo.issues.reopened_at" "" ""}} {{ctx.Locale.Tr "repo.issues.reopened_at" ""}}
{{end}} {{end}}
</li> </li>
{{else if and (not .Aggregator.PrevClosed) .Aggregator.IsClosed}} {{else if and (not .Aggregator.PrevClosed) .Aggregator.IsClosed}}
<span class="badge tw-bg-red tw-text-white">{{svg "octicon-circle-slash"}}</span> <span class="badge tw-bg-red tw-text-white">{{svg "octicon-circle-slash"}}</span>
<li> <li>
{{if .Issue.IsPull}} {{if .Issue.IsPull}}
{{ctx.Locale.Tr "repo.pulls.closed_at" "" ""}} {{ctx.Locale.Tr "repo.pulls.closed_at" ""}}
{{else}} {{else}}
{{ctx.Locale.Tr "repo.issues.closed_at" "" ""}} {{ctx.Locale.Tr "repo.issues.closed_at" ""}}
{{end}} {{end}}
</li> </li>
{{end}} {{end}}