diff options
author | delvh <dev.lh@web.de> | 2023-09-25 10:56:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-25 08:56:50 +0000 |
commit | 7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e (patch) | |
tree | cfcc4836ba1bb71518742f2aaf980f1f34248468 /templates/repo/settings/lfs_pointers.tmpl | |
parent | e6d8b146207de0f5d88b7c08dc75b1f2f078cbbe (diff) | |
download | gitea-7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e.tar.gz gitea-7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e.zip |
Always use `ctx.Locale.Tr` inside templates (#27231)
Diffstat (limited to 'templates/repo/settings/lfs_pointers.tmpl')
-rw-r--r-- | templates/repo/settings/lfs_pointers.tmpl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/repo/settings/lfs_pointers.tmpl b/templates/repo/settings/lfs_pointers.tmpl index db3fdd2f85..1f710869bb 100644 --- a/templates/repo/settings/lfs_pointers.tmpl +++ b/templates/repo/settings/lfs_pointers.tmpl @@ -1,7 +1,7 @@ {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}} <div class="repo-setting-content"> <h4 class="ui top attached header"> - {{.locale.Tr "repo.settings.lfs_pointers.found" .NumPointers .NumAssociated .NumNotAssociated .NumNoExist}} + {{ctx.Locale.Tr "repo.settings.lfs_pointers.found" .NumPointers .NumAssociated .NumNotAssociated .NumNoExist}} {{if gt .NumAssociatable 0}} <div class="ui right"> <form class="ui form" method="post" action="{{$.Link}}/associate"> @@ -11,7 +11,7 @@ <input type="hidden" name="oid" value="{{.Oid}} {{.Size}}"> {{end}} {{end}} - <button class="ui primary button">{{$.locale.Tr "repo.settings.lfs_pointers.associateAccessible" $.NumAssociatable}}</button> + <button class="ui primary button">{{ctx.Locale.Tr "repo.settings.lfs_pointers.associateAccessible" $.NumAssociatable}}</button> </form> </div> {{end}} @@ -20,11 +20,11 @@ <table id="lfs-files-table" class="ui fixed single line table"> <thead> <tr> - <th class="three wide">{{.locale.Tr "repo.settings.lfs_pointers.sha"}}</th> - <th class="four wide">{{.locale.Tr "repo.settings.lfs_pointers.oid"}}</th> - <th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.inRepo"}}</th> - <th class="two wide">{{.locale.Tr "repo.settings.lfs_pointers.exists"}}</th> - <th class="two wide" data-tooltip-content="{{.locale.Tr "repo.settings.lfs_pointers.accessible"}}">{{.locale.Tr "repo.settings.lfs_pointers.accessible"}}</th> + <th class="three wide">{{ctx.Locale.Tr "repo.settings.lfs_pointers.sha"}}</th> + <th class="four wide">{{ctx.Locale.Tr "repo.settings.lfs_pointers.oid"}}</th> + <th class="two wide">{{ctx.Locale.Tr "repo.settings.lfs_pointers.inRepo"}}</th> + <th class="two wide">{{ctx.Locale.Tr "repo.settings.lfs_pointers.exists"}}</th> + <th class="two wide" data-tooltip-content="{{ctx.Locale.Tr "repo.settings.lfs_pointers.accessible"}}">{{.locale.Tr "repo.settings.lfs_pointers.accessible"}}</th> <th class="three wide"></th> </tr> </thead> @@ -45,7 +45,7 @@ <td>{{if .Exists}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> <td>{{if .Accessible}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> <td class="gt-text-right"> - <a class="ui primary button" href="{{$.LFSFilesLink}}/find?oid={{.Oid}}&size={{.Size}}&sha={{.SHA}}">{{$.locale.Tr "repo.settings.lfs_findcommits"}}</a> + <a class="ui primary button" href="{{$.LFSFilesLink}}/find?oid={{.Oid}}&size={{.Size}}&sha={{.SHA}}">{{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}</a> </td> </tr> {{end}} |