scrivito_elastic_slider_widget 0.90.0 → 0.90.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92924085fcf962669d602b8cfb51b46857253b2c
4
- data.tar.gz: ed418b63771d31bb1dd5f586c9f3960803ad0785
3
+ metadata.gz: e6005c51340b7adc803f8e05ee718ec59bba6388
4
+ data.tar.gz: bcf3e9cb5cbb2df8461dc50b8a5a354011794fe5
5
5
  SHA512:
6
- metadata.gz: 4d110c8f90783728b3ade70bb8eea2ba9becc8e6cc458a917ee09316eef349122cba2015bfba6d34a0eec114110ce67e69d6e468883315fa5b16b91badc3181f
7
- data.tar.gz: 414fb2349cb2801cef6e61867032798765de5cc268080da900f5793da984d8bae195b39c2075315e3233b86d7f71970138d103aea0505f598636fbf95de2c01b
6
+ metadata.gz: d1a365a60eb3ed4efde149a76049b9c308fcade83ec9e674e7b219a6ceea9fca859e8a81e592e2fd4c80152e9e2d8d95e468312b2e57ac5a9195c971482953fa
7
+ data.tar.gz: 3ec5f8bd4c21bc2b7a3d2736cf4175274ed2644f7ba9b39d80bfeccc3fd6802072ab5022ab72393854555bc53820a24bb990c6ae8b367fa745aa9be16c915457
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # Scrivito Elastic Slider
1
+ # ScrivitoElasticSlider
2
2
 
3
- A Scrivito widget to add a fullscreen slider depending on bootstrap.
3
+ A Scrivito widget for adding a fullscreen slider based on Bootstrap.
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- This widget requires bootstrap 3.
7
+ This widget requires Bootstrap 3.
8
8
 
9
9
  ## Installation
10
10
 
@@ -16,6 +16,16 @@ Add this line to your application stylesheet manifest:
16
16
 
17
17
  *= require scrivito_elastic_slider_widget
18
18
 
19
- ## Better details view
19
+ ## Localization
20
20
 
21
- The details view of the elastic slider widget uses [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors) accordion feature. You can add this gem to your Gemfile to activate it.
21
+ The following code shows the default localization for english. Copy it to your `en.yml` and change it if necessary:
22
+
23
+ ```yaml
24
+ en:
25
+ scrivito_ealstic_slider_widget:
26
+ thumbnail:
27
+ title: Elastic Slider
28
+ description: Add a slider to your page that has a background image on each panel
29
+ details:
30
+ background_image: Background image
31
+ ```
@@ -1,6 +1,6 @@
1
- .carousel-inner .item {height:400px;}
2
- .carousel-inner .item > img,
3
- .carousel-inner .item > a > img { display: block; height: auto; line-height: 1; min-width: 1200px; width: 100%;}
4
- .carousel-inner .container {position:static;}
5
- .carousel-control {width:7%; opacity:.2; /* @include transition(all .3s ease-in-out); */ }
6
- .carousel-control i {font-size:30px; line-height:400px;}
1
+ .elastic-slider .carousel-inner .item {height:400px;}
2
+ .elastic-slider .carousel-inner .item > img,
3
+ .elastic-slider .carousel-inner .item > a > img { display: block; height: auto; line-height: 1; min-width: 1200px; width: 100%;}
4
+ .elastic-slider .carousel-inner .container {position:static;}
5
+ .elastic-slider .carousel-control {width:7%; opacity:.2; /* @include transition(all .3s ease-in-out); */ }
6
+ .elastic-slider .carousel-control i {font-size:30px; line-height:400px;}
@@ -3,8 +3,8 @@ class ElasticSliderWidget < Widget
3
3
 
4
4
  default_for :panels do |attributes|
5
5
  [
6
- ElasticSliderPanelWidget.new(),
7
- ElasticSliderPanelWidget.new()
6
+ ElasticSliderPanelWidget.new,
7
+ ElasticSliderPanelWidget.new
8
8
  ]
9
9
  end
10
10
 
@@ -1,9 +1,4 @@
1
- <div class="scrivito-title-details">
2
- <h4>Panel</h4>
3
- <%= link_to '(details)', '#', 'data-scrivito-toggle-details' => widget.id %>
4
-
5
- <div class="scrivito-details-<%= widget.id %>">
6
- <h4>Background Image</h4>
7
- <%= scrivito_image_tag(widget, :image, data: { filter: 'images' }) %>
8
- </div>
9
- </div>
1
+ <%= scrivito_details_for do %>
2
+ <h4><%= t('scrivito_elastic_slider_widget.details.background_image', default: 'Background Image') %></h4>
3
+ <%= scrivito_image_tag(widget, :image, data: { filter_context: 'images' }) %>
4
+ <% end %>
@@ -1,5 +1,3 @@
1
- <div class="details-view" data-scrivito-modal-size="large">
2
- <%= scrivito_details_for do %>
3
- <%= scrivito_tag :div, widget, :panels %>
4
- <% end %>
5
- </div>
1
+ <%= scrivito_large_dialog do %>
2
+ <%= scrivito_tag :div, widget, :panels %>
3
+ <% end %>
@@ -1,4 +1,4 @@
1
- <div id="carousel<%= widget.id %>" class="carousel slide" data-ride="carousel">
1
+ <div id="carousel<%= widget.id %>" class="carousel slide elastic-slider" data-ride="carousel" data-keyboard="false">
2
2
  <% if widget.panels.present?%>
3
3
  <ol class="carousel-indicators">
4
4
  <% (0..widget.panels.size-1).each do |index| %>
@@ -1,3 +1,3 @@
1
- <%= scrivito_thumbnail 'Elastic Slider', image_tag("scrivito_elastic_slider_widget/widget_preview_teaser_slider.png") do %>
2
- Fill with Elastic Slider Panels.
1
+ <%= scrivito_thumbnail t('scrivito_elastic_slider_widget.thumbnail.title', default: 'Elastic Slider'), image_tag("scrivito_elastic_slider_widget/widget_preview_teaser_slider.png") do %>
2
+ <%= t('scrivito_elastic_slider_widget.thumbnail.description', default: 'Add a slider to your page that has a background image on each panel') %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoElasticSliderWidget
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_elastic_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-04 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,7 +64,7 @@ files:
64
64
  - Rakefile
65
65
  - app/assets/images/scrivito_elastic_slider_widget/widget_preview_teaser_slider.png
66
66
  - app/assets/images/scrivito_elastic_slider_widget/widget_preview_teaser_slider_panel.png
67
- - app/assets/stylesheets/scrivito_elastic_slider_widget.css.scss
67
+ - app/assets/stylesheets/scrivito_elastic_slider_widget.css
68
68
  - app/assets/stylesheets/scrivito_elastic_slider_widget/application.css
69
69
  - app/models/elastic_slider_panel_widget.rb
70
70
  - app/models/elastic_slider_widget.rb