leanote beta2 release

This commit is contained in:
life
2014-11-12 20:08:07 +08:00
parent 4669fbcbdd
commit 6f12e179eb
10 changed files with 36 additions and 224 deletions

View File

@ -594,8 +594,12 @@ func (c Blog) Post(userIdOrEmail, noteId string) (re revel.Result) {
}
prePost, nextPost := blogService.PreNextBlog(userId, userBlog.SortField, userBlog.IsAsc, baseTime)
c.RenderArgs["prePost"] = prePost
c.RenderArgs["nextPost"] = nextPost
if prePost.NoteId != "" {
c.RenderArgs["prePost"] = prePost
}
if nextPost.NoteId != "" {
c.RenderArgs["nextPost"] = nextPost
}
return c.render("post.html", userBlog.ThemePath)
}