This commit is contained in:
life committed 2014-11-12 17:32:03 +08:00
1 parent d979a0c3e2
commit 1f45666ec4
119 files changed
+2463 -675

No files matched your search

+4
View File
@@ -14,6 +14,10 @@ type Index struct {
// leanote展示页, 没有登录的, 或已登录明确要进该页的
func (c Index) Index() revel.Result {
if configService.HomePageIsAdminsBlog(){
blog := Blog{c.BaseController}
return blog.Index(configService.GetAdminUsername());
}
c.SetUserInfo()
c.RenderArgs["title"] = "leanote"
c.RenderArgs["openRegister"] = configService.GlobalStringConfigs["openRegister"]