Display all tags in add_post and edit_post
Reverse post list in all_posts
This commit is contained in:
@@ -60,6 +60,8 @@ class AllPosts(Index):
|
||||
cur_posts.append(p)
|
||||
continue
|
||||
|
||||
cur_posts = cur_posts.reverse()
|
||||
|
||||
month_elem = self.createElement(dom, 'month')
|
||||
month_def = dom.createElement('month')
|
||||
month_def.appendChild(dom.createTextNode(cur_posts[0].creation_date.strftime(date_format)))
|
||||
@@ -80,6 +82,7 @@ class AllPosts(Index):
|
||||
|
||||
# Last month
|
||||
if not month_elem is None and len(cur_posts) != 0:
|
||||
cur_posts = cur_posts.reverse()
|
||||
month_elem = self.createElement(dom, 'month')
|
||||
month_def = dom.createElement('month')
|
||||
month_def.appendChild(dom.createTextNode(cur_posts[0].creation_date.strftime(date_format)))
|
||||
|
Reference in New Issue
Block a user