Commit Graph

803 Commits

Author SHA1 Message Date
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
Pablo Vazquez 0a606ae15c Fix Free tag overflow 2016-10-14 15:19:40 +02:00
Pablo Vazquez 6af3dfdb51 Use local bootstrap 3.3.7 2016-10-13 16:02:38 +02:00
Pablo Vazquez eca3f47eb8 Style form-upload-progress-bar when uploading
Had the same green hue for completed/uploading, which made it confusing.
2016-10-13 14:25:18 +02:00
Pablo Vazquez 8043caf187 Font Pillar: Question mark icon 2016-10-13 14:25:18 +02:00
Sybren A. Stüvel aa953f76a1 Cache FlaskInternalApi object on request keyed by authentication token. 2016-10-13 10:01:29 +02:00
Sybren A. Stüvel 10ecb2158e Log error when URLer service is used but not configured. 2016-10-13 10:01:11 +02:00
Sybren A. Stüvel 96c9e12f7f doc_diff() optionally no longer reports differences between falsey values.
If falsey_is_equal=True, all Falsey values compare as equal, i.e. this
function won't report differences between DoesNotExist, False, '', and 0.
2016-10-12 17:09:48 +02:00
Sybren A. Stüvel 7c310e12ef Added util function to compute the difference between two dicts. 2016-10-12 16:01:30 +02:00
Sybren A. Stüvel 26aa155b9e Cache Pillar API Object on request object. 2016-10-12 14:29:47 +02:00
Sybren A. Stüvel 0146b568c0 Allow extra fields in activities. 2016-10-12 14:29:28 +02:00
Sybren A. Stüvel ade62033ba Added only_for_node_type_decorator(node_type_name) decorator factory func
This allows you to create a decorator for Eve hooks. The decorator returns
a decorator that checks its first argument's node type.

If the node type is not of the required node type, returns None,
otherwise calls the wrapped function.
2016-10-12 13:41:16 +02:00
Sybren A. Stüvel 8aab88bdc2 Activities now have explicit project ID
This allows for directly querying activity on a certain project.
Used in Attract for task/shot activity streams.
2016-10-12 13:40:27 +02:00
Sybren A. Stüvel f4b34f1d02 Error handler: set 'code' and 'description' defaults separately. 2016-10-12 10:22:25 +02:00
Sybren A. Stüvel 4eb8319697 Better logging of OAuth issues, in the hope to figure out what's going on. 2016-10-11 17:09:02 +02:00
Sybren A. Stüvel 5dd49fa5dd Pillar Extensions can now add links to the sidebar. 2016-10-11 16:33:44 +02:00
Sybren A. Stüvel 6429c3df21 Modernised flask.ext.login imports → flask_login 2016-10-11 15:23:40 +02:00
Pablo Vazquez 3561cb61c6 Fix favicon 2016-10-10 17:29:13 +02:00
Pablo Vazquez a52c263733 Homepage: Fix long comments 2016-10-10 16:39:36 +02:00
Pablo Vazquez c9d4a06486 Swap Blender Sync with Agent 327 project announcement 2016-10-07 16:42:42 +02:00
Pablo Vazquez 8a35fe3a16 Swap blog stream with random featured assets 2016-10-07 15:12:27 +02:00
Pablo Vazquez 620107fdc0 If there's no content_type, display node_type
Like in the case of textures, they are not content_type but node_type
2016-10-07 15:06:29 +02:00
Pablo Vazquez 14a8be6329 Fix 'Latest Assets' list not being updated
Was simply missing project_id
2016-10-07 15:05:57 +02:00
Pablo Vazquez 77b17e31e0 Homepage: Minor style tweaks to make feed a bit more compact 2016-10-07 14:52:39 +02:00
Pablo Vazquez 2028891e7a No need to cache Sass, it's so fast anyway 2016-10-07 14:51:46 +02:00
Pablo Vazquez abe0c28a99 Flowplayer: Fix fullscreen icon 2016-10-06 11:35:10 +02:00
Sybren A. Stüvel c71186f318 Allow project membership to be managed by ppl with admin role.
This was already mentioned as possible in the frontend, but not implemented
in the backend.
2016-10-05 14:36:07 +02:00
Sybren A. Stüvel 4e0db78ff1 Made the use of the term "Team member" consistent on the proj sharing page.
Also clarified that project owners *and* team members can edit the project,
and that team members can also delete assets.
2016-10-04 12:51:23 +02:00