rails_email_preview 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/app/assets/stylesheets/rails_email_preview/{bootstrap.css → _bootstrap.css.scss} +1113 -402
- data/app/assets/stylesheets/rails_email_preview/_layout.css.sass +2 -1
- data/app/controllers/rails_email_preview/application_controller.rb +1 -1
- data/app/views/rails_email_preview/emails/show.html.slim +4 -2
- data/lib/rails_email_preview/version.rb +1 -1
- data/lib/rails_email_preview.rb +3 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 237d77f5e11e6424d6344269aa817c6936cc7adc
|
4
|
+
data.tar.gz: 6842801f68cacce7011a069efaad476d5d63e4cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 [
|
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
|
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
|
-
|
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.
|