From 757bc9874f8aa49d705714ff9189cebf9285420a Mon Sep 17 00:00:00 2001 From: Azareal Date: Tue, 4 Jun 2019 21:51:15 +1000 Subject: [PATCH] Bump the number of logs on each page up slightly. --- routes/panel/logs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/panel/logs.go b/routes/panel/logs.go index 9d5c3128..904fb366 100644 --- a/routes/panel/logs.go +++ b/routes/panel/logs.go @@ -20,7 +20,7 @@ func LogsRegs(w http.ResponseWriter, r *http.Request, user c.User) c.RouteError logCount := c.RegLogs.Count() page, _ := strconv.Atoi(r.FormValue("page")) - perPage := 10 + perPage := 12 offset, page, lastPage := c.PageOffset(logCount, page, perPage) logs, err := c.RegLogs.GetOffset(offset, perPage) @@ -109,7 +109,7 @@ func LogsMod(w http.ResponseWriter, r *http.Request, user c.User) c.RouteError { logCount := c.ModLogs.Count() page, _ := strconv.Atoi(r.FormValue("page")) - perPage := 10 + perPage := 12 offset, page, lastPage := c.PageOffset(logCount, page, perPage) logs, err := c.ModLogs.GetOffset(offset, perPage) @@ -136,7 +136,7 @@ func LogsAdmin(w http.ResponseWriter, r *http.Request, user c.User) c.RouteError logCount := c.ModLogs.Count() page, _ := strconv.Atoi(r.FormValue("page")) - perPage := 10 + perPage := 12 offset, page, lastPage := c.PageOffset(logCount, page, perPage) logs, err := c.AdminLogs.GetOffset(offset, perPage)