summaryrefslogtreecommitdiffstats
path: root/routers/admin
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@sapk.fr>2015-09-25 19:56:23 +0200
committerAntoine GIRARD <sapk@sapk.fr>2015-09-25 19:56:23 +0200
commita8fd615adc73bc5d37c753f14ec9738d1590e363 (patch)
treec3fe0d6347c5da3219c9873889a8dc72823c1eae /routers/admin
parentc98dad1cf3b068f6bbb52a9cd791f2bd180731f2 (diff)
downloadgitea-a8fd615adc73bc5d37c753f14ec9738d1590e363.tar.gz
gitea-a8fd615adc73bc5d37c753f14ec9738d1590e363.zip
Fix indent in notice router
Diffstat (limited to 'routers/admin')
-rw-r--r--routers/admin/notice.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/admin/notice.go b/routers/admin/notice.go
index 164badda7b..9a121ecb27 100644
--- a/routers/admin/notice.go
+++ b/routers/admin/notice.go
@@ -24,14 +24,14 @@ func Notices(ctx *middleware.Context) {
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminNotices"] = true
- total := models.CountNotices()
+ total := models.CountNotices()
page := ctx.QueryInt("page")
if page <= 1 {
page = 1
}
ctx.Data["Page"] = paginater.New(int(total), setting.AdminNoticePagingNum, page, 5)
-
- notices, err := models.Notices(page, setting.AdminNoticePagingNum)
+
+ notices, err := models.Notices(page, setting.AdminNoticePagingNum)
if err != nil {
ctx.Handle(500, "Notices", err)
return