leanote beta2 release
This commit is contained in:
1 parent
4669fbcbdd
commit
6f12e179eb
10 files changed
+36
-224
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user