From 659bc2814c4b6f23c6039e0c7dc962a40968cdb1 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 21 Nov 2016 11:21:24 +0800 Subject: go lint fixed for routers/admin --- routers/admin/repos.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'routers/admin/repos.go') diff --git a/routers/admin/repos.go b/routers/admin/repos.go index 02041185d0..287c294408 100644 --- a/routers/admin/repos.go +++ b/routers/admin/repos.go @@ -14,9 +14,10 @@ import ( ) const ( - REPOS base.TplName = "admin/repo/list" + tplRepos base.TplName = "admin/repo/list" ) +// Repos show all the repositories func Repos(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("admin.repositories") ctx.Data["PageIsAdmin"] = true @@ -28,10 +29,11 @@ func Repos(ctx *context.Context) { Private: true, PageSize: setting.UI.Admin.RepoPagingNum, OrderBy: "owner_id ASC, name ASC, id ASC", - TplName: REPOS, + TplName: tplRepos, }) } +// DeleteRepo delete one repository func DeleteRepo(ctx *context.Context) { repo, err := models.GetRepositoryByID(ctx.QueryInt64("id")) if err != nil { -- cgit v1.2.3