summaryrefslogtreecommitdiffstats
path: root/routers/user/notification.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/notification.go')
-rw-r--r--routers/user/notification.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/routers/user/notification.go b/routers/user/notification.go
index 32cacdd2c4..8c23d76fa9 100644
--- a/routers/user/notification.go
+++ b/routers/user/notification.go
@@ -1,3 +1,7 @@
+// Copyright 2019 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package user
import (
@@ -6,8 +10,6 @@ import (
"strconv"
"strings"
- "github.com/Unknwon/paginater"
-
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
@@ -80,7 +82,11 @@ func Notifications(c *context.Context) {
c.Data["Keyword"] = keyword
c.Data["Status"] = status
c.Data["Notifications"] = notifications
- c.Data["Page"] = paginater.New(int(total), perPage, page, 5)
+
+ pager := context.NewPagination(int(total), perPage, page, 5)
+ pager.SetDefaultParams(c)
+ c.Data["Page"] = pager
+
c.HTML(200, tplNotification)
}