You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo/diff
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>
1 year ago
..
blob_excerpt.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
box.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
comment_form.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 3 years ago
comments.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
compare.tmpl Change green buttons to primary color (#27099) 1 year ago
conversation.tmpl Change green buttons to primary color (#27099) 1 year ago
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 2 years ago
escape_title.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
image_diff.tmpl Improve Image Diff UI (#26696) 2 years ago
new_comment.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 4 years ago
new_review.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
options_dropdown.tmpl Show outdated comments in files changed tab (#24936) 2 years ago
section_code.tmpl Add template linting via djlint (#25212) 2 years ago
section_split.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
section_unified.tmpl cleanup locale function usage (#27227) (#27240) 1 year ago
stats.tmpl Group template helper functions, remove `Printf`, improve template error messages (#23982) 2 years ago
whitespace_dropdown.tmpl Show outdated comments in files changed tab (#24936) 2 years ago