Commit Graph

830 Commits

Author SHA1 Message Date
Sybren A. Stüvel 5bd2c101fe Restore DB from 'cloud' subdir 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel aef7754537 Attachment rendering for posts & node descriptions. 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel d50d206e77 Gracefully handle non-existing files when renaming asset nodes. 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel 28223159e7 Allow admin users to do everything.
This makes things more consistent (previously admins could create projects,
but not nodes in those projects).
2016-11-01 16:47:55 +01:00
Sybren A. Stüvel a38e053c1a Added CLI command to create blogs. 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel 62ac12deff Some more simplification 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel 64ece74404 Cleaned up some blog post viewing code 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel bffbbad323 Support Cerberus valueschema in ValidateCustomFields 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel 8fb64c38d6 Removed API-side attachment parsing. 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel f72890cc59 Define standard set of node types 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel 0929a80f2b New data structure for attachments. 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel ff7101c3fe Small improvements in ValidateCustomFields() 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel 590d075735 New schema for attachments, using propertyschema/valueschema. 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel fa3406b7d0 only_for_node_type_decorator() now supports checking multiple node types 2016-11-01 16:47:32 +01:00
Pablo Vazquez 5805f4eb2a Comments is now part of the base style 2016-11-01 15:53:40 +01:00
Pablo Vazquez 53cbe78ec1 Use #comments-embed for embedding comments. Avoid duplicate ID 2016-11-01 15:53:40 +01:00
Sybren A. Stüvel f4b5e49c26 Return service account info from create_service_account() 2016-11-01 14:00:00 +01:00
Sybren A. Stüvel 499af03473 Gracefully handle 404 in get_user_info() 2016-11-01 14:00:00 +01:00
Sybren A. Stüvel 51c2c1d568 Make it possible for Pillar extensions to add service accounts. 2016-11-01 14:00:00 +01:00
Pablo Vazquez 144c5b8894 Use statusBarSet() js function from Pillar 2016-11-01 12:30:53 +01:00
Pablo Vazquez c9d7da3a42 Attract and Flamenco icons 2016-10-21 20:41:41 +02:00
Sybren A. Stüvel b59fcb5cba Prevent {{ url_for_node(...) }} crashing the planet when node doesn't exist.
Now None is returned as URL, and a warning is logged, rather than crashing
with a 500. A situation like this occurs when an activity refers to a
no longer existing node.
2016-10-21 16:00:03 +02:00
Sybren A. Stüvel 7be8e9b967 Show a nicer 404 error when something was deleted (instead of just "not there") 2016-10-21 15:27:17 +02:00
Sybren A. Stüvel 041722f71a Allow custom messages in the 404_embed.jade template 2016-10-21 14:38:57 +02:00
Pablo Vazquez 457a63ddcb Notifications: Fix alignment of mark as read button 2016-10-21 11:43:40 +02:00
Sybren A. Stüvel 5677ae8532 Prevent errors when notification is linked to non-existing node 2016-10-20 17:43:51 +02:00
Sybren A. Stüvel 8d99f8fc2e No more on-focus resizing; the "POST COMMENT" button moves away when you click it 2016-10-20 17:30:39 +02:00
Sybren A. Stüvel 09a21510a2 Comments: fixed issue cancelling reply & then posting top-level comment
This would still post as a reply, rather than as a top-level comment.
2016-10-20 17:29:45 +02:00
Sybren A. Stüvel 73641ecc8a Allow more tags in comments, including iframe (for video embedding) 2016-10-20 17:14:20 +02:00
Sybren A. Stüvel b1da6de46e Comment textarea min height set when editing + only transition border-color 2016-10-20 17:04:02 +02:00
Sybren A. Stüvel fceac01505 Set a nice minimum height when editing a comment 2016-10-20 17:02:07 +02:00
Sybren A. Stüvel 8b64f9140b Allow resizing of comment textarea 2016-10-20 17:01:58 +02:00
Sybren A. Stüvel e1678537c0 Editing comments via PATCH on pillar-web, and some other comment fixes 2016-10-20 16:47:04 +02:00
Sybren A. Stüvel d8686e5a14 Fixed comment rating 2016-10-20 16:34:33 +02:00
Sybren A. Stüvel e71e6a7b32 API for editing comments via PATCH 2016-10-20 16:22:11 +02:00
Sybren A. Stüvel 8352fafd21 Replaced markdown with commonmark module 2016-10-20 13:05:43 +02:00
Sybren A. Stüvel db2680be81 Removed unused import 2016-10-20 13:05:43 +02:00
Sybren A. Stüvel c456696600 Added TODO 2016-10-20 13:05:43 +02:00
Sybren A. Stüvel ad1816c617 log.warning → .info 2016-10-20 13:05:43 +02:00
Sybren A. Stüvel 8d3c4745aa Remove unnecessary form_schema fields. 2016-10-20 13:05:43 +02:00
Sybren A. Stüvel 3afeeaccd0 Removed permission keys from node type definitions.
This prevents replace_pillar_node_type_schemas() from overwriting existing
permissions.
2016-10-20 13:05:43 +02:00
Sybren A. Stüvel 7f4ad85781 Count comments and replies, not just top-level comments 2016-10-19 17:16:27 +02:00
Sybren A. Stüvel ea2be0f13d Major revision of comment system.
- Comments are stored in HTML as well as Markdown, so that conversion
  only happens when saving (rather than when viewing).
- Added 'markdown' Jinja filter for easy development. This is quite
  a heavy filter, so it shouldn't be used (much) in production.
- Added CLI command to update schemas on existing node types.
2016-10-19 16:57:17 +02:00
Sybren A. Stüvel eea934a86a Added username to public user fields 2016-10-19 16:57:17 +02:00
Sybren A. Stüvel f2f66d7a6c Moved subquery.py from Attract to Pillar, as it's useful for comments too.
It's an attempt to speed up common queries which would ordinarily be
embedded by Eve. We want to move away from embedding due to security
issues (allowing the embedding of users leaks privacy-sensitive info).
2016-10-18 15:34:39 +02:00
Sybren A. Stüvel aca54d76e0 Moved find_url_for_node() to its own module and made more pluggable.
Extensions can now register custom node URL finders using the
@pillar.web.nodes.finders.register_node_finder(node_type_name) decorator.
2016-10-18 12:03:06 +02:00
Pablo Vazquez 646ab58395 Style sidebar icons 2016-10-18 11:34:53 +02:00
Pablo Vazquez d99ddca410 Split base styles into base.css
That way we can load this css in other projects to bring the basic stuff
such as normalize, navbar, notifications, custom scrollbars, and so on.
2016-10-17 16:17:23 +02:00
Pablo Vazquez 87f3093503 Delete attract main.sass, attract has its own 2016-10-17 15:40:14 +02:00
Pablo Vazquez ae723b1655 update css 2016-10-14 15:57:11 +02:00