diff options
author | Unknwon <u@gogs.io> | 2017-04-05 09:17:21 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-04-05 09:17:21 -0400 |
commit | edaf14f2b6fd86f8dec99f67512a5c0095e391dc (patch) | |
tree | ec81011348a0c8df3995c36b46e2646472106800 /routers/repo/view.go | |
parent | 6fbb984ebf4f0d6804f0f83e6edb12ef0bb9a570 (diff) |
Refactoring: remove tool.TplName
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r-- | routers/repo/view.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go index 1559b984..0efa8ba2 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -18,19 +18,19 @@ import ( "github.com/gogits/git-module" "github.com/gogits/gogs/models" - "github.com/gogits/gogs/pkg/tool" "github.com/gogits/gogs/pkg/context" "github.com/gogits/gogs/pkg/markup" "github.com/gogits/gogs/pkg/setting" "github.com/gogits/gogs/pkg/template" "github.com/gogits/gogs/pkg/template/highlight" + "github.com/gogits/gogs/pkg/tool" ) const ( - BARE tool.TplName = "repo/bare" - HOME tool.TplName = "repo/home" - WATCHERS tool.TplName = "repo/watchers" - FORKS tool.TplName = "repo/forks" + BARE = "repo/bare" + HOME = "repo/home" + WATCHERS = "repo/watchers" + FORKS = "repo/forks" ) func renderDirectory(ctx *context.Context, treeLink string) { @@ -304,7 +304,7 @@ func Home(ctx *context.Context) { ctx.HTML(200, HOME) } -func RenderUserCards(ctx *context.Context, total int, getter func(page int) ([]*models.User, error), tpl tool.TplName) { +func RenderUserCards(ctx *context.Context, total int, getter func(page int) ([]*models.User, error), tpl string) { page := ctx.QueryInt("page") if page <= 0 { page = 1 |