rails_email_preview 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 737f667f2755587a5e1058c0b23ebd67f2b1b9cb
4
- data.tar.gz: 0501a6d93155acc2cd89b7c7d2d8c50fa28ff92b
3
+ metadata.gz: 237d77f5e11e6424d6344269aa817c6936cc7adc
4
+ data.tar.gz: 6842801f68cacce7011a069efaad476d5d63e4cd
5
5
  SHA512:
6
- metadata.gz: 70d12a90a5f9a4988fc4374ef33011f88ccd8905d3c505c9f70567549720251fe93fb5e00419cfc5e3c01d637bca5e38db0154006976daadd05332d700a4fac4
7
- data.tar.gz: d27179e2f3e89963fe4005a48cdfb53d84aa36c10352f88ec972fbb62813e4d3d4b5910659e920cbd0b768cae3014261299adcbed93fb10b26084555f32602e6
6
+ metadata.gz: 3f1c4dbfd8e5df43cc6bbfe476e82c05a4965fe534ce36ee1ad5f6d078fcbcf737bb4b30b4f887d24cdc099a94da79fa947d78c193ceb4f165162556f1ce7eef
7
+ data.tar.gz: 8b755305a5a4f09162948da185a08c2059844695ed5cc789c40fa33cc71edff38a53f285ba8a023c6a7a261838b8c13bee29d05c0399d1ea9120dc2577758a95
data/README.md CHANGED
@@ -9,7 +9,7 @@ Preview:
9
9
  List:
10
10
  ![screenshot][rep-nav-screenshot]
11
11
 
12
- REP can use the application styles and comes with [simple styles][rep-show-default-screenshot] by default (default markup for [twbs/bootstrap](twbs/bootstrap) 3).
12
+ REP can use the application styles and comes with [a bootstrap 3 theme][rep-show-default-screenshot] by default (default markup for [twbs/bootstrap](twbs/bootstrap) 3).
13
13
  *These screenshots are from [Zuigo](http://zuigo.com/), a platform to organize & discover events; using REP default markup and app styles*
14
14
 
15
15
  How to
@@ -116,7 +116,14 @@ If you are using `Resque::Mailer` or `Devise::Async`, you can automatically add
116
116
  Views
117
117
  ---------------------
118
118
 
119
- REP allows you to customize some of the classes via `RailsEmailPreview.style`:
119
+ You can render all REP views inside your app layout (this will need styling to look nice if you don't use bootstrap):
120
+
121
+ # # Use admin layout with REP:
122
+ # RailsEmailPreview::ApplicationController.layout 'admin'
123
+ # # If you are using a custom layout, you will want to make app routes available to REP:
124
+ # Rails.application.config.to_prepare { RailsEmailPreview.inline_main_app_routes! }
125
+
126
+ REP allows you to customize some of the element classes via `RailsEmailPreview.style`:
120
127
 
121
128
  {
122
129
  btn_default_class: 'btn btn-default',
@@ -133,14 +140,7 @@ E.g., to change column class from `col-` to `column-` everywhere where REP uses
133
140
 
134
141
  RailsEmailPreview.style[:column_class] = 'column-%{n}'
135
142
 
136
- If you want to really integrate REP, ou can render all its views inside your own layout (this will need styling to look nice if you don't use bootstrap):
137
-
138
- # # Use admin layout with REP:
139
- # RailsEmailPreview::ApplicationController.layout 'admin'
140
- # # If you are using a custom layout, you will want to make app routes available to REP:
141
- # Rails.application.config.to_prepare { RailsEmailPreview.inline_main_app_routes! }
142
-
143
- You can add REP styles (some `.rep-` prefixed classes) with `@import 'rails_email_preview/layout'` in your SASS if you want them (note that they expect to be imported after bootstrap 3 styles).
143
+ You can `//= require 'rails_email_preview/layout'` REP-specific styles (`@import 'rails_email_preview/layout'` for SASS).
144
144
 
145
145
  You can also override any individual view by placing a file with the same path in your project's `app/views`,
146
146
  e.g. `app/views/rails_email_preview/emails/index.html.slim`. *PRs accepted* if you need hooks.