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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjU4N2Y2YzFhMDFhMmUyZWEzMmIyNTkzZWFkYTlkMmI2ODg4YzE2OQ==
4
+ N2RkZDBiMzRjMmJkODkyMmRiMDdlMGYyZDJlMmZhYjc4NmY2NTUwYg==
5
5
  data.tar.gz: !binary |-
6
- NWI5ZGZjNzhkZjEzNThlOTkwYThjYmZiMDIwZTA0NjNlNGI2Zjk3Yg==
6
+ OGRlOTZkNDZlYWI3YjRiMzMyZjQ1OTUzNjQ2N2ExNTExZTVjOWFiZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjEyZmM2MDE0MWVmMWJhMDBhODNlYTAwMjc4MGM4MTQxMjQ1NTZkOGM1YWQy
10
- NTgzMThiMGFiOThkYjkzMTM0NWQzODViOTM4YTVmMWMxYTQ5NDJhZmEyOTM3
11
- ODM3NzFiZTAzOTlkY2EzODk3ODY0Mzg2OTI0ZmM1ZGVjYzE2Y2E=
9
+ MzdjYmZjNjFiMDJiZjZjYTk0NGI5NGZmNzFlZTQ5MzM2YThkMGM0MDQ1Y2Y3
10
+ YzQyOGY0M2Q5YjFjYThhMmQ0Mzc0YzEwZDA1NTg1MDczNGNmMzRjYjE5NjFh
11
+ MDAxNmEzZjc3Y2RjMzM4YTVjNTQyZDgzZGMwZjAzNGEyZjc0Mzc=
12
12
  data.tar.gz: !binary |-
13
- M2Q0ODhmNzI4NGJmYzA4NjE5MTA2MTBlOTcxNzAxZGIxMTk5MDFhYjg1NjRk
14
- ZWExNWI1ZjQ0NjNiZTgwN2NjZGY5MWZmZDQ0MjU4NmMyNzdkMmEwOWQxMDBk
15
- N2YwOWU0ZjZhMGUwOWM1MjdjNjk1MTIzNmFlMzk1MWY1YjdlYjk=
13
+ MGQ2ZGM3MDc2NDU4N2E1ODEwYjVjZGEwNzBhNjg0MTQyZjFhZWMzYWZmYmFk
14
+ OGU4YTQ4ZDFkMjM2ZDA0NzVmNmM4NmFlYTgzYmQ1YzRhMWJlNmMwYWE1Nzcy
15
+ NDRhYWI2YjlhN2Y1OWJjNzU5M2QxMDk4YjIyMmVlZTk0ZjZkZGQ=
@@ -1,5 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Changes on `master`
4
+
5
+ None so far.
6
+
7
+ ### Version 0.3.0
8
+
9
+ - Make control bar text configurable
10
+ ([#8](https://github.com/codevise/pageflow-before-after/pull/8))
11
+
3
12
  ### Version 0.2.0
4
13
 
5
14
  - Localization for `de` and `en`.
@@ -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>
@@ -4,6 +4,7 @@ de:
4
4
  pageflow/page:
5
5
  after_image_id: Nachher-Bild
6
6
  before_image_id: Vorher-Bild
7
+ control_bar_text: Start-Button Beschriftung
7
8
  pageflow:
8
9
  before_after:
9
10
  help_entries:
@@ -4,6 +4,7 @@ en:
4
4
  pageflow/page:
5
5
  after_image_id: Right image
6
6
  before_image_id: Left image
7
+ control_bar_text: Start-button caption
7
8
  pageflow:
8
9
  before_after:
9
10
  help_entries:
@@ -4,6 +4,7 @@ module Pageflow
4
4
  isolate_namespace Pageflow::BeforeAfter
5
5
 
6
6
  config.autoload_paths << File.join(config.root, 'lib')
7
+ config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.yml').to_s]
7
8
  end
8
9
  end
9
10
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'pageflow-before-after'
5
- spec.version = '0.2.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.2.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-02-03 00:00:00.000000000 Z
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: {}