Files
leanote/app/controllers/admin/AdminController.go
life 87269cc939 Merge branch 'develop'
admin [init ok]
lea++ blog platform [ok]
2014-09-24 22:24:52 +08:00

25 lines
383 B
Go

package admin
import (
"github.com/revel/revel"
)
// admin 首页
type Admin struct {
AdminBaseController
}
// admin 主页
func (c Admin) Index() revel.Result {
c.SetUserInfo()
c.RenderArgs["title"] = "leanote"
c.SetLocale()
return c.RenderTemplate("admin/index.html");
}
func (c Admin) GetView(view string) revel.Result {
return c.RenderTemplate("admin/" + view);
}