Releases: comfy/comfortable-mexican-sofa
2.0.19
2.0.18
- Fixing bugs mostly related to ActiveStorage attachments
- Since Ruby SASS is getting deprecated dependency is changed from
sass-rails
tosassc-rails
- Minor tweaks that accumulated over the last several months.
Note that existing Files might get their labels blanked-out. There was a label
method that would output filename if label is blank. Now label is always set during creation.
2.0.17
2.0.16
2.0.15
2.0.14
Content tags have support for nested hashes and arrays. For example:
{{ cms:partial "path/to/partial", foo: { a: b, c: d }, bar: [a, b, c] }}
Will translate to:
<%= render partial: "path/to/partial", locals: {"foo" => {"a" => "b", "c" => "d"}, "bar" => ["a", "b", "c"] } %>
Keep in mind that hash keys and values are always going to be strings
Also fixed how AS variants are using image magic options. See rails/rails#31518 for details
2.0.13
This release is brought you by @glebm
New tag: page_file_link
It's similar to file_link
tag that you can link previously uploaded files into content somewhere. Difference is that this tag links files uploaded for a specific page. Basically, you set up a bucket with all the files and then you can selectively drop them into the content.
Example set up:
On Layout content have {{ cms:files attachments, render: false }}
tag defined.
During page creation populate that field with files and save. Now, during editing you may drag-and-drop previously uploaded files. See PR for more details: #799
Ability to drag and drop is also extended to files uploaded site-wide.
See it in action:
- All Javascript is converted from Coffeescript back to Javascript. Dependency on
coffee-rails
is dropped. - Support for Ruby < 2.3 is dropped. All strings are frozen now.
2.0.10 - Bootstrap 4 final
- From 2.0.0 to 2.0.10 there were mostly small bug fixes and general polish updates.
- Now CMS is using Bootstrap 4 final in the admin area.
- Bootstrap is shipped inside
/app/assets/{stylesheets|javascripts}/comfy/vendor/bootstrap
- bootstrap_form is replaced with comfy_bootstrap_form as former doesn't support Bootstrap 4 still.
- Locale files are a little bit more complete. See: #771
2.0.0 - Rails 5.2 release
- Paperclip is out, ActiveStorage that comes with Rails 5.2 is in. (No support for Rails apps lower than 5.2)
- Site mirroring is gone. It was used as a clunky mechanism to support multi-language sites. Now you can have translations directly associated with pages.
- Completely overhauled content parsing and rendering engine.
- New tag format:
{{ cms:tag_class params}}
. - Old
{{ cms:page:content:rich_text }}
now looks like{{ cms:wysiwyg content }}
- Tags handle params that may look like this:
{{ cms:partial "path/to/partial", local_var_a: "a,b,c", local_var_b: 123 }}
- Parser handles block tags.
{{cms:block}} some content {{cms:end}}
. No tags that use this just yet.
- New tag format:
- Renamed
Comfy::Cms::Block
toComfy::Cms::Fragment
. - CMS Fixtures are CMS Seeds now. Completely rewritten. Now all fragments are found in a single file.
- Timepicker is replaced with Flatpickr.
- Admin area is using Bootstrap 4 and is fully responsive (looks nice on a smartphone)
- Generator updated to make 99% ready to go CRUDS.
- Built-in sitemap generator is gone. Too clunky when you need to add more items there. Easy enough to make one for your own app.
- Million of other small fixes and tweaks.
1.12.10 - Rails 5 release
- Maintenance update to have CMS working for Rails 5 apps. There a lot of deprecation warnings that will be cleaned up in the future when support for Rails 4 is fully dropped.
- Added Turkish locale