scrivito_slick_slider_widget 0.90.0 → 0.90.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f548bc9a88a6edb778bf73d5c2e83998d7354e4e
4
- data.tar.gz: 0fa3fe7a177b1604448b8b44924ddc0721360526
3
+ metadata.gz: 0d121b8b08b20e34f7b82b7758ab356fab3588d4
4
+ data.tar.gz: 76e5054ee0dc2df56710cad55712d69b60263e70
5
5
  SHA512:
6
- metadata.gz: da8f898130c6905c0cbee1571b6a1713f426202b39e407529e87021c809f477fcb86640557cca6595d4954d9ce34b163e9753ddcd0d69d79eb1ea429a8b802c3
7
- data.tar.gz: 7f91cabe55ddc74bb5757cefcf874c40a2092cbe12fc0e5eeed30f66eb0d6368d64e159462c580d8003f5b3789149bdb20656b244d10660a9b2874d8764cd43a
6
+ metadata.gz: dd2d2ea1ffc8825cd157fc8bca6878e9d6c0903c927423fc175c4c901e7d7c0e4f28fe63c194bc8ecff5535f3fc32669585b3825b8823ee70da5d9ce5ee0b8d7
7
+ data.tar.gz: f521e70c21ff48f533dceb727f077cccd3e8e7a26171a66e55bb794c7b20cc7aca76be1e60746a3f5c6ddf5afb0dff768eac6fe9a81e6300e71c3042639ac4d8
data/README.md CHANGED
@@ -1,21 +1,45 @@
1
1
  # ScrivitoSlickSliderWidget
2
2
 
3
- This Gem adds a Slick Slider to your Scrivito App. For details of the slider see http://kenwheeler.github.io/slick/
3
+ This gem adds a Slick Slider to your Scrivito app.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add the gem to your Gemfile
7
+ Add this line to your application's Gemfile:
8
8
 
9
9
  gem 'scrivito_slick_slider_widget'
10
10
 
11
- Add to your javascript/application.js:
11
+ Add this line to your application JavaScript manifest:
12
12
 
13
13
  //= require scrivito_slick_slider_widget
14
14
 
15
- Add to stylesheet/application.css:
15
+ Add this line to your application Stylesheet manifest:
16
16
 
17
17
  *= require scrivito_slick_slider_widget
18
18
 
19
19
  ## Customization
20
20
 
21
- We recomment to use [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors) for best usability.
21
+ We recommend to use [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors) which provides nicer controls.
22
+
23
+ ## Localization
24
+
25
+ The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
26
+
27
+ ```yaml
28
+ en:
29
+ scrivito_slick_slider_widget:
30
+ thumbnail:
31
+ title: Slick Slider
32
+ description: Highly adaptive slider
33
+ details:
34
+ image: Image
35
+ link: Destination
36
+ alt_text: Alternative Text
37
+ infinite: Activate infinite Scrolling
38
+ slides_to_show: Number of elements visible
39
+ slides_to_scroll: Number of elements that scroll
40
+ dots: Show inditactor
41
+ autoplay: Autoplay
42
+ autoplay_speed: Speed for Autoplay in ms
43
+ slides_to_show_tablet: Number of elements visible on tablet
44
+ slides_to_show_mobile: Number of elements visible on mobile
45
+ ```
@@ -1,18 +1,17 @@
1
1
  <%= scrivito_details_for do %>
2
2
  <div class="row">
3
3
  <div class="col-xs-4">
4
- <%= scrivito_details_for 'Image' do %>
4
+ <%= scrivito_details_for t('scrivito_slick_slider_widget.details.image', default: 'Image') do %>
5
5
  <%= scrivito_image_tag(widget, :image) %>
6
6
  <% end %>
7
7
  </div>
8
8
  <div class="col-xs-8">
9
- <%= scrivito_details_for 'Choose a destination' do %>
9
+ <%= scrivito_details_for t('scrivito_slick_slider_widget.details.link', default: 'Destination') do %>
10
10
  <%= scrivito_tag(:div, widget, :link) %>
11
11
  <% end %>
12
- <%= scrivito_details_for 'Alt-Attribute' do %>
13
- <p>(Make sure it has as much relevant information as possible)</p>
12
+ <%= scrivito_details_for t('scrivito_slick_slider_widget.details.alt_text', default: 'Alternative Text') do %>
14
13
  <%= scrivito_tag :div, widget, :alt_text %>
15
14
  <% end %>
16
15
  </div>
17
16
  </div>
18
- <% end %>
17
+ <% end %>
@@ -1,41 +1,39 @@
1
- <div class="details-view" data-scrivito-modal-size="large">
2
- <ul class="tab-list">
3
- <li data-panel-target="#edit-panels" class="active">
4
- Panels
5
- </li>
6
- <li data-panel-target="#edit-settings">
7
- Settings
8
- </li>
9
- </ul>
10
-
11
- <div class="tab-panels">
12
- <div class="tab-panel" id="edit-panels">
13
- <%= scrivito_tag :div, widget, :panels %>
14
- </div>
15
- <div class="tab-panel" id="edit-settings">
16
- <%= scrivito_details_for 'Visible slider on Desktop' do %>
1
+ <%= scrivito_large_dialog do %>
2
+ <%= scrivito_tag :div, widget, :panels %>
3
+ <hr>
4
+ <%= scrivito_details_for 'Number of elements visible on' do %>
5
+ <div class="row">
6
+ <div class="col-md-4">
7
+ <h4><%= t('scrivito_slick_slider_widget.details.slides_to_show', default: 'Desktop') %></h4>
17
8
  <%= scrivito_tag(:div, widget, :slides_to_show) %>
18
- <% end %>
19
- <%= scrivito_details_for 'Slider scroll' do %>
20
- <%= scrivito_tag(:div, widget, :slides_to_scroll) %>
21
- <% end %>
22
- <%= scrivito_details_for 'Visible slider on Tablet' do %>
9
+ </div>
10
+
11
+ <div class="col-md-4">
12
+ <h4><%= t('scrivito_slick_slider_widget.details.slides_to_show_tablet', default: 'Tablet') %></h4>
23
13
  <%= scrivito_tag(:div, widget, :slides_to_show_tablet) %>
24
- <% end %>
25
- <%= scrivito_details_for 'Visible slider on Mobile' do %>
14
+ </div>
15
+
16
+ <div class="col-md-4">
17
+ <h4><%= t('scrivito_slick_slider_widget.details.slides_to_show_mobile', default: 'Mobile') %></h4>
26
18
  <%= scrivito_tag(:div, widget, :slides_to_show_mobile) %>
27
- <% end %>
28
- <%= scrivito_details_for 'Activate infinite Scrolling' do %>
29
- <%= scrivito_tag(:div, widget, :infinite) %>
30
- <% end %>
31
- <%= scrivito_details_for 'Show indicators' do %>
32
- <%= scrivito_tag(:div, widget, :dots) %>
33
- <% end %>
34
- <%= scrivito_details_for 'Autoplay' do %>
35
- <%= scrivito_tag(:div, widget, :autoplay) %>
36
- <h4>Speed for autoplay</h4>
37
- <%= scrivito_tag(:div, widget, :autoplay_speed) %>
38
- <% end %>
19
+ </div>
39
20
  </div>
40
- </div>
41
- </div>
21
+ <% end %>
22
+
23
+ <%= scrivito_details_for do %>
24
+ <h4><%= t('scrivito_slick_slider_widget.details.slides_to_scroll', default: 'Number of elements that scroll') %></h4>
25
+ <%= scrivito_tag(:div, widget, :slides_to_scroll) %>
26
+
27
+ <h4><%= t('scrivito_slick_slider_widget.details.infinite', default: 'Activate infinite Scrolling') %></h4>
28
+ <%= scrivito_tag(:div, widget, :infinite) %>
29
+
30
+ <h4><%= t('scrivito_slick_slider_widget.details.dots', default: 'Show inditactor') %></h4>
31
+ <%= scrivito_tag(:div, widget, :dots) %>
32
+
33
+ <h4><%= t('scrivito_slick_slider_widget.details.autoplay', default: 'Autoplay') %></h4>
34
+ <%= scrivito_tag(:div, widget, :autoplay) %>
35
+
36
+ <h4><%= t('scrivito_slick_slider_widget.details.autoplay_speed', default: 'Speed for autoplay') %></h4>
37
+ <%= scrivito_tag(:div, widget, :autoplay_speed) %>
38
+ <% end %>
39
+ <% end %>
@@ -1,3 +1,3 @@
1
- <%= scrivito_thumbnail 'Slick Slider', image_tag("scrivito_slick_slider_widget/widget_preview_slick_slider.png") do %>
2
- Highly adaptive slider.
1
+ <%= scrivito_thumbnail t('scrivito_slick_slider_widget.thumbnail.title', default: 'Slick Slider'), image_tag("scrivito_slick_slider_widget/widget_preview_slick_slider.png") do %>
2
+ <%= t('scrivito_slick_slider_widget.thumbnail.description', default: 'Highly adaptive slider') %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSlickSliderWidget
2
- VERSION = "0.90.0"
2
+ VERSION = "0.90.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_slick_slider_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.90.0
4
+ version: 0.90.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.42.0
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  description: Scrivito Widget for a bootstrap-style Slick Slider.
42
28
  email:
43
29
  - support@scrivito.com
@@ -60,7 +46,6 @@ files:
60
46
  - app/models/slick_slider_panel_widget.rb
61
47
  - app/models/slick_slider_widget.rb
62
48
  - app/views/slick_slider_panel_widget/details.html.erb
63
- - app/views/slick_slider_widget/add_new_panel.html.erb
64
49
  - app/views/slick_slider_widget/details.html.erb
65
50
  - app/views/slick_slider_widget/show.html.erb
66
51
  - app/views/slick_slider_widget/thumbnail.html.erb
@@ -1 +0,0 @@
1
- <!-- JS code for refreshing page part and activating new added panel? -->