Mercurial > libervia-web
comparison src/pages/forums/view/page_meta.py @ 1077:880ea673aaff
blog: moved blog page from /common to /blog:
- removed common pages (it was only used for blog so far, it may come back in the future if needed)
- /blog now prepares a discover page by default
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 26 Mar 2018 08:20:41 +0200 |
parents | 2290b6ec3991 |
children | cdd389ef97bc |
comparison
equal
deleted
inserted
replaced
1076:5bf288f84862 | 1077:880ea673aaff |
---|---|
18 | 18 |
19 @defer.inlineCallbacks | 19 @defer.inlineCallbacks |
20 def prepare_render(self, request): | 20 def prepare_render(self, request): |
21 data = self.getRData(request) | 21 data = self.getRData(request) |
22 data['show_comments'] = False | 22 data['show_comments'] = False |
23 blog_page = self.getPageByName(u'blog') | 23 blog_page = self.getPageByName(u'blog_view') |
24 request.args['before'] = [''] | 24 request.args['before'] = [''] |
25 request.args['reverse'] = ['1'] | 25 request.args['reverse'] = ['1'] |
26 yield blog_page.prepare_render(self, request) | 26 yield blog_page.prepare_render(self, request) |
27 request.template_data[u'login_url'] = self.getPageRedirectURL(request) | 27 request.template_data[u'login_url'] = self.getPageRedirectURL(request) |
28 | 28 |