mirror of
https://github.com/go-gitea/gitea
synced 2025-08-13 04:58:19 +00:00
Always use ctx.Locale.Tr
inside templates (#27231)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin authentication")}}
|
||||
<div class="admin-setting-content">
|
||||
<h4 class="ui top attached header">
|
||||
{{.locale.Tr "admin.auths.auth_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
|
||||
{{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
|
||||
<div class="ui right">
|
||||
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/auths/new">{{.locale.Tr "admin.auths.new"}}</a>
|
||||
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/auths/new">{{ctx.Locale.Tr "admin.auths.new"}}</a>
|
||||
</div>
|
||||
</h4>
|
||||
<div class="ui attached table segment">
|
||||
@@ -11,12 +11,12 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>{{.locale.Tr "admin.auths.name"}}</th>
|
||||
<th>{{.locale.Tr "admin.auths.type"}}</th>
|
||||
<th>{{.locale.Tr "admin.auths.enabled"}}</th>
|
||||
<th>{{.locale.Tr "admin.auths.updated"}}</th>
|
||||
<th>{{.locale.Tr "admin.users.created"}}</th>
|
||||
<th>{{.locale.Tr "admin.users.edit"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.auths.name"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.auths.type"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.auths.enabled"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.auths.updated"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.users.created"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.users.edit"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
Reference in New Issue
Block a user