pageflow-before-after 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +5 -0
- data/README.md +6 -2
- data/lib/pageflow/before_after/page_type.rb +7 -0
- data/pageflow-before-after.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODg3YThlZjdiZmU5ZTIwY2Q0NzA1MjQxMGU3ZGJhOTQ0NGQwOGE4NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2FhMDU0NWE4ZjA1NzgzOWRlYzZmNjZmNjVkZDYzOTQxMWU0MjljMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDM5OTM0Y2YxYzQ1NmIwMDM3MDk2YzRkZTBjNGY2NmJmMjc1MGZjY2U4Yjgy
|
10
|
+
ZmNjNDdiZTkxYWJjNTg2N2NkZGI2ODY5YjFkYzMyNzI0ZDVkOTA4NDljM2Iz
|
11
|
+
NTJlZWM1MWM0OTNkYTdjNGI5YjYzNWMxODA5NDc1MTIyZmE3OTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzFkOWMwNDQyYmUxODY2NWIwOGVhYzQ0NjE5ODc2MjhmMWRhZTdhMzJmNzJk
|
14
|
+
MmMzYWEwNzkwZjkxYmE1ZTVkZTk1ZTI0YTY2M2NlM2JkMWNmYzYwNmM5ZGU1
|
15
|
+
YjBlMWNlZTk5ZDgzYzIyMzUxMGNjMjZmMWE2MjZhOWMyNDU2ZjU=
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -20,14 +20,18 @@ Register the page type:
|
|
20
20
|
|
21
21
|
Include javascripts and stylesheets:
|
22
22
|
|
23
|
-
# app/assets/javascripts/application.js
|
23
|
+
# app/assets/javascripts/pageflow/application.js
|
24
24
|
//= require "pageflow/before_after"
|
25
25
|
|
26
26
|
# app/assets/javascripts/pageflow/editor.js
|
27
27
|
//= require pageflow/before_after/editor
|
28
28
|
|
29
|
-
# app/assets/stylesheets/application.scss
|
29
|
+
# app/assets/stylesheets/pageflow/application.css.scss
|
30
30
|
@import "pageflow/before_after";
|
31
31
|
|
32
32
|
Execute `bundle install`
|
33
33
|
Restart the application server.
|
34
|
+
|
35
|
+
## Troubleshooting
|
36
|
+
|
37
|
+
If you run into problems while installing the page type, please also refer to the [Troubleshooting](https://github.com/codevise/pageflow/wiki/Troubleshooting) wiki page in the [Pageflow repository](https://github.com/codevise/pageflow). If that doesn't help, consider [filing an issue](https://github.com/codevise/pageflow-before-after/issues).
|
@@ -2,6 +2,13 @@ module Pageflow
|
|
2
2
|
module BeforeAfter
|
3
3
|
class PageType < Pageflow::PageType
|
4
4
|
name 'before_after'
|
5
|
+
|
6
|
+
def thumbnail_candidates
|
7
|
+
[
|
8
|
+
{attribute: 'thumbnail_image_id', file_collection: 'image_files'},
|
9
|
+
{attribute: 'after_image_id', file_collection: 'image_files'}
|
10
|
+
]
|
11
|
+
end
|
5
12
|
end
|
6
13
|
end
|
7
14
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'pageflow-before-after'
|
5
|
-
spec.version = '0.0
|
5
|
+
spec.version = '0.1.0'
|
6
6
|
spec.authors = ['Codevise Solutions']
|
7
7
|
spec.email = ['info@codevise.de']
|
8
8
|
spec.summary = 'Pageflow page type for before/after image slider.'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-before-after
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|