Commit Graph

866 Commits

Author SHA1 Message Date
Sybren A. Stüvel 36e7cc56ef Removed colon for easy copy & paste of IDs 2016-11-02 17:21:50 +01:00
Sybren A. Stüvel aa3340ddbe CLI upgrade_attachment_schema: stop when a node cannot be saved. 2016-11-02 17:21:50 +01:00
Sybren A. Stüvel 4280e0175b CLI upgrade_attachment_schema: only upgrade non-deleted nodes 2016-11-02 17:21:50 +01:00
Sybren A. Stüvel cc562a9fb1 Fix attachment rendering for nodes without description. 2016-11-02 17:21:50 +01:00
Sybren A. Stüvel 4ec3268a23 Reloading comment list via event 'pillar:comment-posted' on body element. 2016-11-02 17:21:50 +01:00
Pablo Vazquez 80601f75ed Remove deprecated +button-rounded-filled mixin
We now use just 'button', as roundness and filled are configurable
2016-11-02 16:36:47 +01:00
Pablo Vazquez 9ac2f38042 Warn if there's no slug to append 2016-11-02 16:21:10 +01:00
Pablo Vazquez 4bd334e403 Add button to 'Add Attachment to Description' 2016-11-02 16:16:20 +01:00
Pablo Vazquez ae859d3ea7 Minor style tweaks to file form widgets 2016-11-02 16:16:20 +01:00
Sybren A. Stüvel 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
Sybren A. Stüvel 2cc21583d9 On-create activities are only created for Pillar nodes.
This allows Attract to use custom on-create activities.
2016-11-02 15:39:16 +01:00
Sybren A. Stüvel 0ac0f482ac Merge branch 'production' 2016-11-02 14:52:37 +01:00
Pablo Vazquez f30cdd5246 Minor style tweaks to attachments form 2016-11-02 14:51:10 +01:00
Sybren A. Stüvel 48157254c1 Fixed snag. 2016-11-02 14:43:19 +01:00
Pablo Vazquez 3fc08bcafd Set the slug based on the file name 2016-11-02 14:07:02 +01:00
Pablo Vazquez ff94cc57a3 Only show image size if it's image
Otherwise it'd be NonexNone
2016-11-02 12:51:49 +01:00
Sybren A. Stüvel cf28e5a3f4 Unified "Add New File" and ".. Attachment" buttons. 2016-11-02 12:29:38 +01:00
Sybren A. Stüvel 6ea7386bd3 "Add new attachment" button works. 2016-11-02 12:28:45 +01:00
Sybren A. Stüvel 90c6fdc377 Handle empty attachments (no slug nor oid) and reject duplicate slugs 2016-11-02 12:28:45 +01:00
Sybren A. Stüvel 2a5b3dc53e Removed unused code. 2016-11-02 12:28:45 +01:00
Pablo Vazquez dabc1a44b8 Set icon for error message 2016-11-02 11:42:49 +01:00
Pablo Vazquez eb1561136b Fix typo in attachments code 2016-11-02 11:42:23 +01:00
Sybren A. Stüvel d24677992e Datetimes in dynamic properties are now timezone-aware (but hardcoded). 2016-11-02 10:52:44 +01:00
Pablo Vazquez e143b9cb72 Use undertitle filter when displaying node status 2016-11-01 19:36:04 +01:00
Pablo Vazquez 6faea83372 Fix rating on comments 2016-11-01 19:28:53 +01:00
Pablo Vazquez d36dcad773 Fix rated status for comments (was missing space between classes) 2016-11-01 19:28:53 +01:00
Pablo Vazquez a385a373b9 Typo in comments 2016-11-01 19:28:53 +01:00
Francesco Siddi 8fa135d52e Add license types and notes to asset node_type 2016-11-01 19:05:14 +01:00
Pablo Vazquez 6f460ee127 Fix for non existing attachments 2016-11-01 18:05:26 +01:00
Pablo Vazquez 8cc2cfb189 Don't use hardcode url for homepage 2016-11-01 17:29:27 +01:00
Pablo Vazquez c672bc07fe Only load comments on assets or posts
Was trying to load comments on groups, textures, etc.
2016-11-01 17:17:33 +01:00
Sybren A. Stüvel 656944f1ce Allow add_to_project() to take generator for node types 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel ab9d5c1793 CLI upgrade_attachment_schema: skip already upgraded nodes. 2016-11-01 16:47:55 +01:00
Sybren A. Stüvel fe4d70c0d1 CLI upgrade_attachment_schema: also remove attachments form_schema
Previously they would have {'attachments': {'visible': False}}, but this
is no longer needed.
2016-11-01 16:47:55 +01:00
Sybren A. Stüvel 964e807721 Give admin explicit permissions, instead of blindly granting everything.
This ensures that the allowed_methods properties are properly set. Admin
users get the union of all permissions given to all groups and users.
2016-11-01 16:47:55 +01:00
Sybren A. Stüvel 3cf71a365f Forms for attachments work, VERY HACKISH Hardcodedness™ 2016-11-01 16:47:55 +01:00
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