2020-01-12 07:51:51 +01:00
|
|
|
{{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }}
|
2020-07-25 23:14:10 +02:00
|
|
|
{{ $toNewPostsMessage := i18n "toNewPosts" }}
|
2021-11-06 21:15:00 +01:00
|
|
|
{{ $toOldPostsMessage := i18n "toOldPosts" }}
|
2023-11-18 12:54:41 +01:00
|
|
|
<div class="pagination noselect">
|
2020-02-02 16:01:10 +01:00
|
|
|
<div class="left pagination-item {{ if not .Paginator.HasPrev }}disabled{{ end }}">
|
2020-01-12 07:51:51 +01:00
|
|
|
{{ if .Paginator.HasPrev }}
|
2021-11-06 21:15:00 +01:00
|
|
|
<a href="{{ .Paginator.Prev.URL }}">{{ $toNewPostsMessage }}</a>
|
2020-01-12 07:51:51 +01:00
|
|
|
{{ end }}
|
2020-02-02 16:01:10 +01:00
|
|
|
</div>
|
|
|
|
<div class="right pagination-item {{ if not .Paginator.HasNext }}disabled{{ end }}">
|
2020-01-12 07:51:51 +01:00
|
|
|
{{ if .Paginator.HasNext }}
|
2021-11-06 21:15:00 +01:00
|
|
|
<a href="{{ .Paginator.Next.URL }}">{{ $toOldPostsMessage }}</a>
|
2020-01-12 07:51:51 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-25 23:14:10 +02:00
|
|
|
{{ end }}
|