- Fixes deprecation warnings on Rails 6.
- Fixes unintentional processing of email HTML as ERB. RCE vulnerability if preview body contains user input. #82
Fixes support for Rails <5.2 (regression introduced in v2.2.0).
Adds CSP nonce to inline script tags if CSP is enabled on Rails v5.2+.
Use sassc-rails
instead of sass-rails
.
CMS integration now supports Comfy v2.
Depend on sass
instead of sass-rails
.
Fix a URL generation issue in the CMS integration on Rails 5.
- Document roadie-rails support.
- Fix body iframe height calculation.
Drop support for all versions of Rails below 4.2. Fix Rails 5 deprecation warnings.
Rails 5 support.
Added a couple of variables for further default theme customization.
Added RailsEmailPreview.find_preview_classes(dir)
that also finds classes in subdirectories, and changed the default
initializer to load classes like this:
RailsEmailPreview.preview_classes = RailsEmailPreview.find_preview_classes('app/mailer_previews')
Breaking: REP now uses a lightweight default theme with no dependencies by default.
If you are using REP with the Bootstrap 3 theme, here are the configuration changes you need to make:
-
@import "rails_email_preview/bootstrap3"
instead ofrails_email_preview/application
. -
Add the following styles configuration to your REP initializer:
config.style.merge!( btn_active_class_modifier: 'active', btn_danger_class: 'btn btn-danger', btn_default_class: 'btn btn-default', btn_group_class: 'btn-group btn-group-sm', btn_primary_class: 'btn btn-primary', form_control_class: 'form-control', list_group_class: 'list-group', list_group_item_class: 'list-group-item', row_class: 'row', )
The following REP internal class names have changed:
.rep-email-options
is now.rep--email-options
..rep-headers-list
is now.rep--headers-list
..rep-email-show
is now.rep--email-show
..breadcrumb
is now.rep--breadcrumbs
..breadcrumb .active
is now.rep--breadcrumbs__active
..rep-send-to-wrapper
is gone, but now there is.rep--send-to-form
.
All REP views are now wrapped in a div
with the rep--main-container
class.
REP no longer depends on slim and slim-rails.
Fixed minor email locale handling bugs in navigation and the CMS integration.
- Compatibility with namespaced email classes in the CMS.
- Compatibility with namespaced email classes.
- Change Sass stylesheets extensions from
.sass
to.css.sass
. #61. - Spanish translation. Thanks, @epergo!
- Latest CMS compatibility
- Rails 4.2: avoid deprecation warnings
- CMS beta compatibility
- Improve CMS compatibility
- New hook: breadcrumb
- Fix an issue with preview list #47.
- Fix a number of minor issues.
- Show attachment headers in the link's hover text (HTML title).
- Faster loading via
DOMContentLoaded
on the iframe as opposed toload
.
- Fix regression: Rails 3 support.
- View hooks to inject or replace UI selectively.
- Fix regression in attachments caused by having a controller action named
headers
(name conflict).
- Preview params set from URL query. Thank you, @OlgaGr!
- Routes now include locale and part type as segments (with defaults).
- Faster loading using srcdoc iframe attribute; new progress bar.
- New language: Russian.
- Minor bugfixes.
- Attachments. Thanks, @rzane!
- CMS: 1.12 compatibility, better error messages.
- REP will fall back to :en if its set locale is not in the list of available locales
- Fixes for CMS integration
- UI language is now set to :en by default, to avoid #32
- Rails 3 compatibility issues fixed
- Fix preview generator
- minor bugfixes
- UI improvements
- clean up dependencies
- squell compatibility
- german translation thanks to @baschtl
- email iframe resizes on window resize
- bugfixes
- simplified setting custom layout with
layout=
- bugfixes
- updated bootstrap, turbolinks
- internal: tests + screenshots in spec/screenshots/ after each test run
bugs fixed, looks improved
- config.style to customize classes in REP views
- UI enhancements
- CMS integration bug fixes
- Send email bug fixes
- Send Email from REP
- inline_main_app_routes! (enables easy layout switching)
- parent_controller (enables easy authorization integration)
- Backwards incompatible: root_url is now rep_root_url, internal routes are prefixed too.