Commit Graph

27 Commits

Author SHA1 Message Date
b6b517688e Display blog list and posts within the project
TODO: Edit within the project as well
2016-12-01 15:57:59 +01:00
52a1602a7c Allow overriding whether the user can comment from URL.
Not really secure (user can still post comments via API and by changing the
URL and re-requesting the embedded comment form), but at least normal users
are blocked from commenting this way.
2016-11-11 16:01:56 +01:00
65b554986c pretty_date(None) now returns None 2016-11-08 12:56:19 +01:00
e43405a349 Fix for empty File field not showing when there are no files
Committing on behalf of Dr. Sybren
2016-11-02 18:43:41 +01:00
295c821b9d Simplified code 2016-11-02 17:55:37 +01:00
cc562a9fb1 Fix attachment rendering for nodes without description. 2016-11-02 17:21:50 +01:00
e69393e95e WIP: endpoint for posting new comments without comment list.
We need to determine what happens when such a comment is successfully
posted, as we can't just reload the comment list. In other words, this is
dependent on where we are embedded, and cannot be handled just locally.
2016-11-02 15:40:26 +01:00
90c6fdc377 Handle empty attachments (no slug nor oid) and reject duplicate slugs 2016-11-02 12:28:45 +01:00
6faea83372 Fix rating on comments 2016-11-01 19:28:53 +01:00
a385a373b9 Typo in comments 2016-11-01 19:28:53 +01:00
6f460ee127 Fix for non existing attachments 2016-11-01 18:05:26 +01:00
3cf71a365f Forms for attachments work, VERY HACKISH Hardcodedness™ 2016-11-01 16:47:55 +01:00
aef7754537 Attachment rendering for posts & node descriptions. 2016-11-01 16:47:55 +01:00
62ac12deff Some more simplification 2016-11-01 16:47:55 +01:00
64ece74404 Cleaned up some blog post viewing code 2016-11-01 16:47:55 +01:00
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
e1678537c0 Editing comments via PATCH on pillar-web, and some other comment fixes 2016-10-20 16:47:04 +02:00
ad1816c617 log.warning → .info 2016-10-20 13:05:43 +02:00
7f4ad85781 Count comments and replies, not just top-level comments 2016-10-19 17:16:27 +02:00
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
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
10ecb2158e Log error when URLer service is used but not configured. 2016-10-13 10:01:11 +02:00
6429c3df21 Modernised flask.ext.login imports → flask_login 2016-10-11 15:23:40 +02:00
14a8be6329 Fix 'Latest Assets' list not being updated
Was simply missing project_id
2016-10-07 15:05:57 +02:00
5ebec42e6d Removed unused, commented-out code 2016-08-30 15:58:58 +02:00
4529d0597b Gracefully handle nodes of a type for which we don't have a template.
Before, it would simply return a 500 Internal Server Error.
2016-08-30 15:52:55 +02:00
2c5dc34ea2 Introducing Pillar Framework
Refactor of pillar-server and pillar-web into a single python package. This
simplifies the overall architecture of pillar applications.

Special thanks @sybren and @venomgfx
2016-08-19 09:19:06 +02:00