Bump the number of logs on each page up slightly.

This commit is contained in:
Azareal 2019-06-04 21:51:15 +10:00
parent 145db83815
commit 757bc9874f

View File

@ -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)