pageflow-before-after 0.1.0 → 0.2.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
- ODg3YThlZjdiZmU5ZTIwY2Q0NzA1MjQxMGU3ZGJhOTQ0NGQwOGE4NQ==
4
+ MjU4N2Y2YzFhMDFhMmUyZWEzMmIyNTkzZWFkYTlkMmI2ODg4YzE2OQ==
5
5
  data.tar.gz: !binary |-
6
- Y2FhMDU0NWE4ZjA1NzgzOWRlYzZmNjZmNjVkZDYzOTQxMWU0MjljMw==
6
+ NWI5ZGZjNzhkZjEzNThlOTkwYThjYmZiMDIwZTA0NjNlNGI2Zjk3Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDM5OTM0Y2YxYzQ1NmIwMDM3MDk2YzRkZTBjNGY2NmJmMjc1MGZjY2U4Yjgy
10
- ZmNjNDdiZTkxYWJjNTg2N2NkZGI2ODY5YjFkYzMyNzI0ZDVkOTA4NDljM2Iz
11
- NTJlZWM1MWM0OTNkYTdjNGI5YjYzNWMxODA5NDc1MTIyZmE3OTg=
9
+ YjEyZmM2MDE0MWVmMWJhMDBhODNlYTAwMjc4MGM4MTQxMjQ1NTZkOGM1YWQy
10
+ NTgzMThiMGFiOThkYjkzMTM0NWQzODViOTM4YTVmMWMxYTQ5NDJhZmEyOTM3
11
+ ODM3NzFiZTAzOTlkY2EzODk3ODY0Mzg2OTI0ZmM1ZGVjYzE2Y2E=
12
12
  data.tar.gz: !binary |-
13
- YzFkOWMwNDQyYmUxODY2NWIwOGVhYzQ0NjE5ODc2MjhmMWRhZTdhMzJmNzJk
14
- MmMzYWEwNzkwZjkxYmE1ZTVkZTk1ZTI0YTY2M2NlM2JkMWNmYzYwNmM5ZGU1
15
- YjBlMWNlZTk5ZDgzYzIyMzUxMGNjMjZmMWE2MjZhOWMyNDU2ZjU=
13
+ M2Q0ODhmNzI4NGJmYzA4NjE5MTA2MTBlOTcxNzAxZGIxMTk5MDFhYjg1NjRk
14
+ ZWExNWI1ZjQ0NjNiZTgwN2NjZGY5MWZmZDQ0MjU4NmMyNzdkMmEwOWQxMDBk
15
+ N2YwOWU0ZjZhMGUwOWM1MjdjNjk1MTIzNmFlMzk1MWY1YjdlYjk=
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  .bundle
5
5
  .config
6
6
  .yardoc
7
+ .idea
7
8
  InstalledFiles
8
9
  _yardoc
9
10
  coverage
@@ -17,3 +18,5 @@ test/version_tmp
17
18
  tmp
18
19
  log
19
20
  Gemfile.lock
21
+
22
+ .localeapp
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 0.2.0
4
+
5
+ - Localization for `de` and `en`.
6
+
3
7
  ### Version 0.1.0
4
8
 
5
9
  - Display correct page thumbnails in Pageflow 0.5.
data/README.md CHANGED
@@ -9,7 +9,7 @@ Page type showing before/after image sliders (Digit style).
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  # Gemfile
12
- gem 'pagflow-before-after'
12
+ gem 'pageflow-before-after'
13
13
 
14
14
  Register the page type:
15
15
 
@@ -35,3 +35,9 @@ Restart the application server.
35
35
  ## Troubleshooting
36
36
 
37
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).
38
+
39
+ ## Contributing Locales
40
+
41
+ Edit the translations directly on the
42
+ [pageflow-before-after](http://www.localeapp.com/projects/public?search=tf/pageflow-before-after)
43
+ locale project.
@@ -1,4 +1,4 @@
1
- //= require jquery.ui.draggable
1
+ //= require jquery-ui/draggable
2
2
  //= require ./before_after/widget
3
3
 
4
4
  pageflow.pageType.register('before_after', _.extend({
@@ -69,4 +69,4 @@ pageflow.pageType.register('before_after', _.extend({
69
69
  }
70
70
  };
71
71
  }
72
- }, pageflow.commonPageCssClasses, pageflow.infoBox));
72
+ }, pageflow.commonPageCssClasses, pageflow.infoBox));
@@ -1,6 +1,10 @@
1
1
  <div class="blackLayer"></div>
2
2
  <div class="content_and_background beforeAfterPage">
3
- <div class="close_button text_hidden_only" tabindex="4" title="Vorher/Nachher-Ansicht verlassen und Text einblenden">Schließen</div>
3
+ <div class="close_button text_hidden_only" tabindex="4" title="<%= t('.close_title') %>">
4
+ <div class="label">
5
+ <%= t('.close') %>
6
+ </div>
7
+ </div>
4
8
 
5
9
  <div class="backgroundArea">
6
10
  <div class="videoWrapper">
@@ -20,14 +24,14 @@
20
24
 
21
25
  <div class="content">
22
26
  <div class="controls">
23
- <span class="hint">360 Gradansicht</span>
27
+ <span class="hint"><%= t('.hint') %></span>
24
28
  <%= info_box(configuration) %>
25
29
  <div class="vjs-control-bar view-control">
26
30
  <div class="play_button vjs-controls vjs-default-skin vjs-player">
27
- <a class="vjs-play-control vjs-play vjs-control" tabindex="4" title="Vorher/Nachher-Ansicht starten"><span></span></a>
31
+ <a class="vjs-play-control vjs-play vjs-control" tabindex="4" title="<%= t('.start_title') %>"><span></span></a>
28
32
  </div>
29
33
  <div class="control_bar_text">
30
- Vorher/Nachher-Ansicht starten
34
+ <%= t('.start') %>
31
35
  </div>
32
36
  </div>
33
37
  </div>
@@ -41,7 +45,7 @@
41
45
  <span class="title"><%= configuration['title'] %></span>
42
46
  <span class="subtitle"><%= configuration['subtitle'] %></span>
43
47
  </h2>
44
- <%= background_image_tag(configuration['background_image_id'], {"class" => "print_image"}) %>
48
+ <%= background_image_tag(configuration['background_image_id'], {:class => "print_image"}) %>
45
49
  </div>
46
50
  <div class="contentText">
47
51
  <p><%= raw configuration['text'] %></p>
@@ -1,9 +1,38 @@
1
1
  de:
2
- pageflow:
3
- before_after:
4
- page_type_name: "Vorher/Naher"
5
2
  activerecord:
6
3
  attributes:
7
4
  pageflow/page:
8
- before_image_id: "Vorher-Bild"
9
- after_image_id: "Nachher-Bild"
5
+ after_image_id: Nachher-Bild
6
+ before_image_id: Vorher-Bild
7
+ pageflow:
8
+ before_after:
9
+ help_entries:
10
+ page_type:
11
+ menu_item: Vorher/Nachher
12
+ text: ! '# Vorher/Nachher
13
+
14
+
15
+ Zwei übereinander liegende Bilder mit Schieberegler getrennt
16
+
17
+
18
+ Mit dem Vorher/Nachher-Effekt lassen sich zwei Bilder übereinander legen, die dann per
19
+
20
+ Schieberegler mehr oder weniger in Erscheinung treten.
21
+
22
+ Dieser Seitentyp macht vor allem dann Sinn, wenn Du etwas miteinander vergleichen
23
+
24
+ möchtest. Besonders wirksam ist dieser optische Abgleich, wenn Winkel und Ausschnitt
25
+
26
+ beider Aufnahmen oder Grafiken exakt übereinstimmen.
27
+
28
+
29
+ Typische Anwendungsbeispiele: Damals wie Heute, Status quo und Planung, leer oder voll etc.'
30
+ page:
31
+ close: Schließen
32
+ close_title: Vorher/Nachher-Ansicht verlassen und Text einblenden
33
+ hint: Vorher/Nacher Ansicht
34
+ start: Vorher/Nachher-Ansicht starten
35
+ start_title: Vorher/Nachher-Ansicht starten
36
+ page_type_category_name: Interaktiv
37
+ page_type_description: Zwei übereinandergelegte Bilder mit Schieberegler getrennt
38
+ page_type_name: Vorher/Nachher
@@ -0,0 +1,30 @@
1
+ en:
2
+ activerecord:
3
+ attributes:
4
+ pageflow/page:
5
+ after_image_id: Right image
6
+ before_image_id: Left image
7
+ pageflow:
8
+ before_after:
9
+ help_entries:
10
+ page_type:
11
+ menu_item: Before/After
12
+ text: ! '# Before/After
13
+
14
+
15
+ Two overlapping pictures, separated through a slider
16
+
17
+
18
+ With the before and after effect two pictures can be put on top of each other. The pictures can be viewed with a slider. This page type makes sense, if you want to compare something. If the angle and sequence match, this it is particularly effective.
19
+
20
+
21
+ Examples of application: now and then, status quo and planned, empty or crowded'
22
+ page:
23
+ close: Close
24
+ close_title: Leave before/after view
25
+ hint: Before/after view
26
+ start: Start before/after view
27
+ start_title: Start before/after view
28
+ page_type_category_name: Interactive
29
+ page_type_description: Two images separated by a slider
30
+ page_type_name: Before/After
@@ -2,5 +2,8 @@ require 'pageflow/before_after/engine'
2
2
 
3
3
  module Pageflow
4
4
  module BeforeAfter
5
+ def self.page_type
6
+ BeforeAfter::PageType.new
7
+ end
5
8
  end
6
9
  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.1.0'
5
+ spec.version = '0.2.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.'
@@ -15,8 +15,10 @@ Gem::Specification.new do |spec|
15
15
  spec.require_paths = ['lib']
16
16
 
17
17
 
18
- spec.add_runtime_dependency('pageflow')
18
+ spec.add_dependency 'pageflow', '~> 0.7'
19
+
20
+ spec.add_dependency 'jquery-ui-rails', '~> 5.0'
19
21
 
20
22
  # Using translations from rails locales in javascript code.
21
- spec.add_runtime_dependency 'i18n-js'
23
+ spec.add_dependency 'i18n-js'
22
24
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-before-after
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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-10-24 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jquery-ui-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: i18n-js
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -65,6 +79,7 @@ files:
65
79
  - app/assets/stylesheets/pageflow/before_after.css.scss
66
80
  - app/views/pageflow/before_after/page.html.erb
67
81
  - config/locales/de.yml
82
+ - config/locales/en.yml
68
83
  - lib/pageflow-before-after.rb
69
84
  - lib/pageflow/before_after/engine.rb
70
85
  - lib/pageflow/before_after/page_type.rb
@@ -89,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
104
  version: '0'
90
105
  requirements: []
91
106
  rubyforge_project:
92
- rubygems_version: 2.2.2
107
+ rubygems_version: 2.4.2
93
108
  signing_key:
94
109
  specification_version: 4
95
110
  summary: Pageflow page type for before/after image slider.