diff --git a/app/controllers/MobileController.go b/app/controllers/MobileController.go deleted file mode 100644 index 36e2c23..0000000 --- a/app/controllers/MobileController.go +++ /dev/null @@ -1,44 +0,0 @@ -package controllers - -import ( - "github.com/revel/revel" -// "github.com/leanote/leanote/app/info" -) - -// 首页 -type Mobile struct { - BaseController -} - -// leanote展示页, 没有登录的, 或已登录明确要进该页的 -func (c Mobile) Index() revel.Result { - c.SetLocale() - - userInfo := c.GetUserInfo() - userId := userInfo.UserId.Hex() - - // 没有登录 - if userId == "" { - return c.RenderTemplate("mobile/login.html") - } - - /* - // 已登录了, 那么得到所有信息 - notebooks := notebookService.GetNotebooks(userId) - shareNotebooks, sharedUserInfos := shareService.GetShareNotebooks(userId) - - c.RenderArgs["userInfo"] = userInfo - c.RenderArgs["userInfoJson"] = c.Json(userInfo) - c.RenderArgs["notebooks"] = c.Json(notebooks) - c.RenderArgs["shareNotebooks"] = c.Json(shareNotebooks) - c.RenderArgs["sharedUserInfos"] = c.Json(sharedUserInfos) - c.RenderArgs["tagsJson"] = c.Json(tagService.GetTags(c.GetUserId())) - */ - - return c.RenderTemplate("mobile/angular.html"); -} - -func (c Mobile) Logout() revel.Result { - c.ClearSession() - return c.RenderTemplate("mobile/login.html"); -} \ No newline at end of file diff --git a/app/views/Admin/header.html b/app/views/Admin/header.html index acb71fe..b2623ee 100644 --- a/app/views/Admin/header.html +++ b/app/views/Admin/header.html @@ -10,7 +10,7 @@