|
@@ -10,6 +10,7 @@ const ( |
|
|
tplTech base.TplName = "tech/tech_view" |
|
|
tplTech base.TplName = "tech/tech_view" |
|
|
tplRepo base.TplName = "tech/repo_view" |
|
|
tplRepo base.TplName = "tech/repo_view" |
|
|
tplAdmin base.TplName = "tech/admin_view" |
|
|
tplAdmin base.TplName = "tech/admin_view" |
|
|
|
|
|
tplMine base.TplName = "tech/my_view" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func Create(ctx *context.Context) { |
|
|
func Create(ctx *context.Context) { |
|
@@ -25,3 +26,7 @@ func RepoView(ctx *context.Context) { |
|
|
func AdminView(ctx *context.Context) { |
|
|
func AdminView(ctx *context.Context) { |
|
|
ctx.HTML(200, tplAdmin) |
|
|
ctx.HTML(200, tplAdmin) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func MyView(ctx *context.Context) { |
|
|
|
|
|
ctx.HTML(200, tplMine) |
|
|
|
|
|
} |