summaryrefslogtreecommitdiffstats
path: root/templates/repo/wiki/pages.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/wiki/pages.tmpl')
-rw-r--r--templates/repo/wiki/pages.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/wiki/pages.tmpl b/templates/repo/wiki/pages.tmpl
index c680327d8b..3c53fe1e8a 100644
--- a/templates/repo/wiki/pages.tmpl
+++ b/templates/repo/wiki/pages.tmpl
@@ -4,11 +4,11 @@
<div class="ui container">
<h2 class="ui header df ac sb">
<div>
- {{.i18n.Tr "repo.wiki.pages"}}
+ {{.locale.Tr "repo.wiki.pages"}}
</div>
<div>
{{if and .CanWriteWiki (not .IsRepositoryMirror)}}
- <a class="ui green small button" href="{{.RepoLink}}/wiki?action=_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
+ <a class="ui green small button" href="{{.RepoLink}}/wiki?action=_new">{{.locale.Tr "repo.wiki.new_page_button"}}</a>
{{end}}
</div>
</h2>
@@ -20,8 +20,8 @@
{{svg "octicon-file"}}
<a href="{{$.RepoLink}}/wiki/{{.SubURL}}">{{.Name}}</a>
</td>
- {{$timeSince := TimeSinceUnix .UpdatedUnix $.i18n}}
- <td class="text right grey">{{$.i18n.Tr "repo.wiki.last_updated" $timeSince | Safe}}</td>
+ {{$timeSince := TimeSinceUnix .UpdatedUnix $.locale}}
+ <td class="text right grey">{{$.locale.Tr "repo.wiki.last_updated" $timeSince | Safe}}</td>
</tr>
{{end}}
</tbody>