1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00
forgejo/templates/repo/issue/view_content
Giteabot daaf0ad473
cleanup locale function usage (#27227) (#27240)
Backport #27227 by @denyskon

Throughout the Gitea codebase, you can meet some weird constructions to
make `locale.Tr` work in subtemplates.
Since we now have `ctx.Locale.Tr` which solves that problem, clean up
various templates which pass `locale` through `dict` or use some weird
constructions like `$.root.locale`

Going on, it would be great to replace every case of `$.locale.Tr` and
`.locale.Tr` with `ctx.Locale.Tr`, but that needs to be done with
patience.

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
2023-09-25 00:21:38 +00:00
..
add_reaction.tmpl Improve and fix bugs surrounding reactions (#24760) 2023-05-28 01:34:18 +00:00
attachments.tmpl Enable djlint H008 and fix issues (#26869) 2023-09-01 17:32:39 +00:00
comments.tmpl Allow copying issue comment link on archived repos and when not logged in (#27193) (#27210) 2023-09-24 19:25:09 +00:00
comments_delete_time.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
context_menu.tmpl Allow copying issue comment link on archived repos and when not logged in (#27193) (#27210) 2023-09-24 19:25:09 +00:00
pull.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
pull_merge_instruction.tmpl cleanup locale function usage (#27227) (#27240) 2023-09-25 00:21:38 +00:00
reactions.tmpl Improve and fix bugs surrounding reactions (#24760) 2023-05-28 01:34:18 +00:00
reference_issue_dialog.tmpl Change green buttons to primary color (#27099) 2023-09-18 22:05:31 +00:00
show_role.tmpl Add member, collaborator, contributor, and first-time contributor roles and tooltips (#26658) 2023-08-24 13:06:17 +08:00
sidebar.tmpl Change green buttons to primary color (#27099) 2023-09-18 22:05:31 +00:00
update_branch_by_merge.tmpl Replace fomantic divider module with our own (#25539) 2023-06-29 20:24:22 +08:00