default /
This commit is contained in:
@ -12,12 +12,16 @@ type Index struct {
|
|||||||
BaseController
|
BaseController
|
||||||
}
|
}
|
||||||
|
|
||||||
// leanote展示页, 没有登录的, 或已登录明确要进该页的
|
func (c Index) Default() revel.Result {
|
||||||
func (c Index) Index() revel.Result {
|
|
||||||
if configService.HomePageIsAdminsBlog(){
|
if configService.HomePageIsAdminsBlog(){
|
||||||
blog := Blog{c.BaseController}
|
blog := Blog{c.BaseController}
|
||||||
return blog.Index(configService.GetAdminUsername());
|
return blog.Index(configService.GetAdminUsername());
|
||||||
}
|
}
|
||||||
|
return c.Index()
|
||||||
|
}
|
||||||
|
// leanote展示页, 没有登录的, 或已登录明确要进该页的
|
||||||
|
func (c Index) Index() revel.Result {
|
||||||
|
|
||||||
c.SetUserInfo()
|
c.SetUserInfo()
|
||||||
c.RenderArgs["title"] = "leanote"
|
c.RenderArgs["title"] = "leanote"
|
||||||
c.RenderArgs["openRegister"] = configService.GlobalStringConfigs["openRegister"]
|
c.RenderArgs["openRegister"] = configService.GlobalStringConfigs["openRegister"]
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
module:testrunner
|
module:testrunner
|
||||||
|
|
||||||
# Home is My Blog
|
# Home is My Blog
|
||||||
Get / Index.Index
|
Get / Index.Default
|
||||||
GET /note Note.Index
|
GET /note Note.Index
|
||||||
# leanote home
|
# leanote home
|
||||||
GET /index Index.Index
|
GET /index Index.Index
|
||||||
|
Reference in New Issue
Block a user