Add pagination for notifications

This commit is contained in:
Andrey Nering
2017-01-03 17:09:36 -02:00
parent 545ba2e2e6
commit b354cf362e
3 changed files with 40 additions and 10 deletions

View File

@ -5,7 +5,7 @@
<h1 class="ui header">{{.i18n.Tr "notification.notifications"}}</h1>
<div class="ui top attached tabular menu">
<a href="/notifications?status=unread">
<a href="/notifications?q=unread">
<div class="{{if eq .Status 1}}active{{end}} item">
{{.i18n.Tr "notification.unread"}}
{{if eq .Status 1}}
@ -13,7 +13,7 @@
{{end}}
</div>
</a>
<a href="/notifications?status=read">
<a href="/notifications?q=read">
<div class="{{if eq .Status 2}}active{{end}} item">
{{.i18n.Tr "notification.read"}}
{{if eq .Status 2}}
@ -62,6 +62,8 @@
</div>
{{end}}
</div>
{{template "base/paginate" .}}
</div>
</div>