Mercurial > libervia-web
comparison libervia/pages/u/page_meta.py @ 1419:6fc41f000d24
pages (blog/view, u, files/list): custom breadcrumbs:
- for `blog/view`, feed is added, then post if an item is shown
- for `files/list`, files server then directories (with icons) are used
- for `u` we deactivate breadcrumb for now
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Apr 2021 20:51:36 +0200 |
parents | f511f8fbbf8a |
children | 106bae41f5c8 |
comparison
equal
deleted
inserted
replaced
1418:d6bcb0cf92d2 | 1419:6fc41f000d24 |
---|---|
38 "href": atom_url, | 38 "href": atom_url, |
39 "type": "application/atom+xml", | 39 "type": "application/atom+xml", |
40 "rel": "alternate", | 40 "rel": "alternate", |
41 "title": "{target_profile}'s blog".format(target_profile=target_profile)}) | 41 "title": "{target_profile}'s blog".format(target_profile=target_profile)}) |
42 | 42 |
43 def add_breadcrumb(self, request, breadcrumbs): | |
44 # we don't want a breadcrumb here | |
45 pass | |
46 | |
43 | 47 |
44 @defer.inlineCallbacks | 48 @defer.inlineCallbacks |
45 def prepare_render(self, request): | 49 def prepare_render(self, request): |
46 data = self.getRData(request) | 50 data = self.getRData(request) |
47 self.checkCache( | 51 self.checkCache( |