mirror of
https://gitee.com/gitea/gitea
synced 2025-11-03 16:10:25 +08:00
Always use ctx.Locale.Tr inside templates (#27231)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
<div class="gt-mr-4">
|
||||
{{if not .result.UpdatedUnix.IsZero}}
|
||||
<span class="ui grey text">{{.root.locale.Tr "explore.code_last_indexed_at" (TimeSinceUnix .result.UpdatedUnix .root.locale) | Safe}}</span>
|
||||
<span class="ui grey text">{{ctx.Locale.Tr "explore.code_last_indexed_at" (TimeSinceUnix .result.UpdatedUnix .root.locale) | Safe}}</span>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user