annotate libervia/pages/blog/edit/_browser/__init__.py @ 1466:cff720e26089

pages (blog/view): activate pagination when a single item is shown: `previous_page_url` and `next_page_url` are set when `item_id` is used. For now, they are both activated even if there is no item before or after, as it would request to make extra request to check it. This may be improved in 0.9 by using internal cache. fix 399
author Goffi <goffi@goffi.org>
date Thu, 30 Sep 2021 17:04:22 +0200
parents 925a7c498cda
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1416
0554103ec700 pages (blog): new `edit` page:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 import editor
0554103ec700 pages (blog): new `edit` page:
Goffi <goffi@goffi.org>
parents:
diff changeset
2
0554103ec700 pages (blog): new `edit` page:
Goffi <goffi@goffi.org>
parents:
diff changeset
3
0554103ec700 pages (blog): new `edit` page:
Goffi <goffi@goffi.org>
parents:
diff changeset
4 editor.set_form_autosave("blog_post_edit")
1420
925a7c498cda pages (blog/edit): move preview code to new `BlogEditor` class in `editor` module
Goffi <goffi@goffi.org>
parents: 1416
diff changeset
5 editor.BlogEditor()
1416
0554103ec700 pages (blog): new `edit` page:
Goffi <goffi@goffi.org>
parents:
diff changeset
6 editor.TagsEditor("input[name='tags']")