diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-21 11:21:24 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-21 11:29:25 +0800 |
commit | 659bc2814c4b6f23c6039e0c7dc962a40968cdb1 (patch) | |
tree | 80cae2c04590ac77558e96d0b45d2671f537dc50 /routers/admin/repos.go | |
parent | bd13c816845356e96be507b69b8c733cc788b2d2 (diff) | |
download | gitea-659bc2814c4b6f23c6039e0c7dc962a40968cdb1.tar.gz gitea-659bc2814c4b6f23c6039e0c7dc962a40968cdb1.zip |
go lint fixed for routers/admin
Diffstat (limited to 'routers/admin/repos.go')
-rw-r--r-- | routers/admin/repos.go | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |