pageflow-before-after 0.2.0 → 0.3.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 +9 -0
- data/app/assets/javascripts/pageflow/before_after.js +4 -0
- data/app/assets/javascripts/pageflow/before_after/editor.js +5 -0
- data/app/views/pageflow/before_after/page.html.erb +1 -1
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/lib/pageflow/before_after/engine.rb +1 -0
- data/pageflow-before-after.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2RkZDBiMzRjMmJkODkyMmRiMDdlMGYyZDJlMmZhYjc4NmY2NTUwYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGRlOTZkNDZlYWI3YjRiMzMyZjQ1OTUzNjQ2N2ExNTExZTVjOWFiZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzdjYmZjNjFiMDJiZjZjYTk0NGI5NGZmNzFlZTQ5MzM2YThkMGM0MDQ1Y2Y3
|
10
|
+
YzQyOGY0M2Q5YjFjYThhMmQ0Mzc0YzEwZDA1NTg1MDczNGNmMzRjYjE5NjFh
|
11
|
+
MDAxNmEzZjc3Y2RjMzM4YTVjNTQyZDgzZGMwZjAzNGEyZjc0Mzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGQ2ZGM3MDc2NDU4N2E1ODEwYjVjZGEwNzBhNjg0MTQyZjFhZWMzYWZmYmFk
|
14
|
+
OGU4YTQ4ZDFkMjM2ZDA0NzVmNmM4NmFlYTgzYmQ1YzRhMWJlNmMwYWE1Nzcy
|
15
|
+
NDRhYWI2YjlhN2Y1OWJjNzU5M2QxMDk4YjIyMmVlZTk0ZjZkZGQ=
|
data/CHANGELOG.md
CHANGED
@@ -49,6 +49,10 @@ pageflow.pageType.register('before_after', _.extend({
|
|
49
49
|
pageElement.find('h2 .title').text(configuration.get('title') || '');
|
50
50
|
pageElement.find('h2 .subtitle').text(configuration.get('subtitle') || '');
|
51
51
|
pageElement.find('p').html(configuration.get('text') || '');
|
52
|
+
pageElement.find('.control_bar_text').text(configuration.get('control_bar_text') ||
|
53
|
+
I18n.t('pageflow.before_after.page.start', {
|
54
|
+
locale: pageflow.entry.configuration.get('locale')
|
55
|
+
}));
|
52
56
|
|
53
57
|
this.updateInfoBox(pageElement, configuration);
|
54
58
|
this.updateCommonPageCssClasses(pageElement, configuration);
|
@@ -8,6 +8,11 @@ pageflow.ConfigurationEditorView.register('before_after', {
|
|
8
8
|
this.tab('general', function() {
|
9
9
|
this.group('general');
|
10
10
|
|
11
|
+
this.input('control_bar_text', pageflow.TextInputView, {
|
12
|
+
placeholder: I18n.t('pageflow.before_after.page.start', {
|
13
|
+
locale: pageflow.entry.configuration.get('locale')
|
14
|
+
})
|
15
|
+
});
|
11
16
|
this.input('additional_title', pageflow.TextInputView);
|
12
17
|
this.input('additional_description', pageflow.TextAreaInputView, {size: 'short'});
|
13
18
|
});
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<a class="vjs-play-control vjs-play vjs-control" tabindex="4" title="<%= t('.start_title') %>"><span></span></a>
|
32
32
|
</div>
|
33
33
|
<div class="control_bar_text">
|
34
|
-
<%= t('.start') %>
|
34
|
+
<%= configuration['control_bar_text'].presence || t('.start') %>
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
</div>
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'pageflow-before-after'
|
5
|
-
spec.version = '0.
|
5
|
+
spec.version = '0.3.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.'
|
9
|
-
spec.homepage = ''
|
9
|
+
spec.homepage = 'https://github.com/codevise/pageflow-before-after'
|
10
10
|
spec.license = 'MIT'
|
11
11
|
|
12
12
|
spec.files = `git ls-files`.split($/)
|
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.
|
4
|
+
version: 0.3.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: 2015-
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- lib/pageflow/before_after/engine.rb
|
85
85
|
- lib/pageflow/before_after/page_type.rb
|
86
86
|
- pageflow-before-after.gemspec
|
87
|
-
homepage:
|
87
|
+
homepage: https://github.com/codevise/pageflow-before-after
|
88
88
|
licenses:
|
89
89
|
- MIT
|
90
90
|
metadata: {}
|