default /
This commit is contained in:
1 parent
a6d3fe9cb8
commit
cd3c2f7b12
2 files changed
+7
-3
No files matched your search
@@ -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"]
|
||||||
|
|||||||
+1
-1
@@ -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