aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/commits_list.tmpl
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-06-27 22:58:46 +0200
committerGitHub <noreply@github.com>2022-06-27 15:58:46 -0500
commitd55a0b723809f5b94acd948b924c8518014445e0 (patch)
tree0ef9ea54f30769ca1d16ce20e551bd7a078f7f5e /templates/repo/commits_list.tmpl
parentb551bc2a089d3310dde5706d1b9702f112fe3ea0 (diff)
downloadgitea-d55a0b723809f5b94acd948b924c8518014445e0.tar.gz
gitea-d55a0b723809f5b94acd948b924c8518014445e0.zip
Refactor `i18n` to `locale` (#20153)
* Refactor `i18n` to `locale` - Currently we're using the `i18n` variable naming for the `locale` struct. This contains locale's specific information and cannot be used for general i18n purpose, therefore refactoring it to `locale` makes more sense. - Ref: https://github.com/go-gitea/gitea/pull/20096#discussion_r906699200 * Update routers/install/install.go
Diffstat (limited to 'templates/repo/commits_list.tmpl')
-rw-r--r--templates/repo/commits_list.tmpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl
index d94d313071..1003f2ee74 100644
--- a/templates/repo/commits_list.tmpl
+++ b/templates/repo/commits_list.tmpl
@@ -2,10 +2,10 @@
<table class="ui very basic striped table unstackable fixed" id="commits-table">
<thead>
<tr>
- <th class="four wide">{{.i18n.Tr "repo.commits.author"}}</th>
+ <th class="four wide">{{.locale.Tr "repo.commits.author"}}</th>
<th class="two wide sha">SHA1</th>
- <th class="seven wide message">{{.i18n.Tr "repo.commits.message"}}</th>
- <th class="three wide right aligned">{{.i18n.Tr "repo.commits.date"}}</th>
+ <th class="seven wide message">{{.locale.Tr "repo.commits.message"}}</th>
+ <th class="three wide right aligned">{{.locale.Tr "repo.commits.date"}}</th>
</tr>
</thead>
<tbody class="commit-list">
@@ -76,9 +76,9 @@
{{end}}
</td>
{{if .Committer}}
- <td class="text right aligned">{{TimeSince .Committer.When $.i18n}}</td>
+ <td class="text right aligned">{{TimeSince .Committer.When $.locale}}</td>
{{else}}
- <td class="text right aligned">{{TimeSince .Author.When $.i18n}}</td>
+ <td class="text right aligned">{{TimeSince .Author.When $.locale}}</td>
{{end}}
</tr>
{{end}}