1
0
Fork 0
This commit is contained in:
Michael Ovchinnikov 2018-08-31 15:30:42 +03:00
parent c78342e7cc
commit b43e0d727e
3 changed files with 12 additions and 2 deletions

5
i18n/en.yaml Normal file
View file

@ -0,0 +1,5 @@
- id: nextPage
translation: "Next Page"
- id: prevPage
translation: "Prev Page"

5
i18n/ru.yaml Normal file
View file

@ -0,0 +1,5 @@
- id: nextPage
translation: "Туда"
- id: prevPage
translation: "Сюда"

View file

@ -33,10 +33,10 @@
<footer class="list-footer">
<nav class="pagination">
{{ if $paginator.HasPrev }}
<a class="pagination-prev" href="{{ $paginator.Prev.URL }}">Prev Page</a>
<a class="pagination-prev" href="{{ $paginator.Prev.URL }}">{{ i18n "prevPage" }}</a>
{{ end }}
{{ if $paginator.HasNext }}
<a class="pagination-next" href="{{ $paginator.Next.URL }}">Next Page</a>
<a class="pagination-next" href="{{ $paginator.Next.URL }}">{{ i18n "nextPage" }}</a>
{{ end }}
</nav>
</footer>