aboutsummaryrefslogtreecommitdiffstats
path: root/templates/package/content/npm_dependencies.tmpl
diff options
context:
space:
mode:
authordelvh <dev.lh@web.de>2023-09-25 10:56:50 +0200
committerGitHub <noreply@github.com>2023-09-25 08:56:50 +0000
commit7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e (patch)
treecfcc4836ba1bb71518742f2aaf980f1f34248468 /templates/package/content/npm_dependencies.tmpl
parente6d8b146207de0f5d88b7c08dc75b1f2f078cbbe (diff)
downloadgitea-7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e.tar.gz
gitea-7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e.zip
Always use `ctx.Locale.Tr` inside templates (#27231)
Diffstat (limited to 'templates/package/content/npm_dependencies.tmpl')
-rw-r--r--templates/package/content/npm_dependencies.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/package/content/npm_dependencies.tmpl b/templates/package/content/npm_dependencies.tmpl
index b55c1b5b88..dba45750b7 100644
--- a/templates/package/content/npm_dependencies.tmpl
+++ b/templates/package/content/npm_dependencies.tmpl
@@ -3,8 +3,8 @@
<table class="ui single line very basic table">
<thead>
<tr>
- <th class="eleven wide">{{.root.locale.Tr "packages.dependency.id"}}</th>
- <th class="five wide">{{.root.locale.Tr "packages.dependency.version"}}</th>
+ <th class="eleven wide">{{ctx.Locale.Tr "packages.dependency.id"}}</th>
+ <th class="five wide">{{ctx.Locale.Tr "packages.dependency.version"}}</th>
</tr>
</thead>
<tbody>