scrivito_elastic_slider_widget 0.66.0 → 0.90.0

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: 7428a3f97b7ff8fc496f0acd88d0bb337f3dfa88
4
- data.tar.gz: c827270e1b91e63df6fe170b533e08d5872f77ac
3
+ metadata.gz: 92924085fcf962669d602b8cfb51b46857253b2c
4
+ data.tar.gz: ed418b63771d31bb1dd5f586c9f3960803ad0785
5
5
  SHA512:
6
- metadata.gz: e138da8a0bb5524b663056f948c496834561c262534900bbf50d4650e948205b54f8af9a2b10ddb617439f154155ab408ae5b0d1e778bbccdf44fd0cbc513f8e
7
- data.tar.gz: 0d523d5b28237203772b833d270920ff315512e86d4420cd0c736417efe93c2db670c1197d88082765f738446bcd07ce86a7cd0df6444ad9270b683ef8895ebe
6
+ metadata.gz: 4d110c8f90783728b3ade70bb8eea2ba9becc8e6cc458a917ee09316eef349122cba2015bfba6d34a0eec114110ce67e69d6e468883315fa5b16b91badc3181f
7
+ data.tar.gz: 414fb2349cb2801cef6e61867032798765de5cc268080da900f5793da984d8bae195b39c2075315e3233b86d7f71970138d103aea0505f598636fbf95de2c01b
data/README.md CHANGED
@@ -1,22 +1,21 @@
1
1
  # Scrivito Elastic Slider
2
2
 
3
- This Gem adds an Elastic Slider Widget to [Scrivito](http://scrivito.com).
3
+ A Scrivito widget to add a fullscreen slider depending on bootstrap.
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- Use Bootstrap 3.2 in your Rails App.
7
+ This widget requires bootstrap 3.
8
8
 
9
9
  ## Installation
10
10
 
11
- Add the gem to your Gemfile:
11
+ Add this line to your application's Gemfile:
12
12
 
13
13
  gem 'scrivito_elastic_slider_widget'
14
14
 
15
- Add this line to your application Stylesheet manifest:
15
+ Add this line to your application stylesheet manifest:
16
16
 
17
17
  *= require scrivito_elastic_slider_widget
18
18
 
19
- Add this line to your editing Stylesheet manifest:
20
-
21
- //= require scrivito_elastic_slider_widget
19
+ ## Better details view
22
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.
@@ -1,4 +1,3 @@
1
1
  /*
2
- *= require scrivito_advanced_editors
3
2
  *= require_tree ./scrivito_elastic_slider_widget
4
- */
3
+ */
@@ -4,4 +4,3 @@
4
4
  .carousel-inner .container {position:static;}
5
5
  .carousel-control {width:7%; opacity:.2; /* @include transition(all .3s ease-in-out); */ }
6
6
  .carousel-control i {font-size:30px; line-height:400px;}
7
-
@@ -1,8 +1,6 @@
1
1
  class ElasticSliderPanelWidget < Widget
2
- attribute :button, :link
3
- attribute :content, :string
4
- attribute :headline, :string
5
2
  attribute :image, :reference
3
+ attribute :panel_content, :widgetlist
6
4
 
7
5
  def additional_classes(params)
8
6
  begin
@@ -1,6 +1,13 @@
1
1
  class ElasticSliderWidget < Widget
2
2
  attribute :panels, :widgetlist
3
3
 
4
+ default_for :panels do |attributes|
5
+ [
6
+ ElasticSliderPanelWidget.new(),
7
+ ElasticSliderPanelWidget.new()
8
+ ]
9
+ end
10
+
4
11
  def valid_widget_classes_for(field_name)
5
12
  [ElasticSliderPanelWidget]
6
13
  end
@@ -1,22 +1,9 @@
1
1
  <div class="scrivito-title-details">
2
- <%= scrivito_tag(:h4, widget, :headline) %>
2
+ <h4>Panel</h4>
3
3
  <%= link_to '(details)', '#', 'data-scrivito-toggle-details' => widget.id %>
4
- <div class="scrivito-details-<%= widget.id %>">
5
- <div>
6
- <strong>Background Image</strong>
7
- <div class="row">
8
- <div class="col-xs-4">
9
- <%= scrivito_image_tag(widget, :image, data: { filter: 'images' }) %>
10
- </div>
11
-
12
- <div class="col-xs-8">
13
- <strong>Text</strong>
14
- <%= scrivito_tag(:div, widget, :content) %>
15
4
 
16
- <strong>Button</strong>
17
- <%= scrivito_edit_link(widget, :button, data: {placeholder: "Where should the button take the user ..."}) %>
18
- </div>
19
- </div>
20
- </div>
5
+ <div class="scrivito-details-<%= widget.id %>">
6
+ <h4>Background Image</h4>
7
+ <%= scrivito_image_tag(widget, :image, data: { filter: 'images' }) %>
21
8
  </div>
22
9
  </div>
@@ -2,14 +2,8 @@
2
2
  <%= scrivito_image_tag widget, :image %>
3
3
  <div class="container">
4
4
  <div class="carousel-caption">
5
- <%= scrivito_tag :h1, widget, :headline %>
6
5
  <div class="content">
7
- <%= scrivito_tag :p, widget, :content %>
8
- <% unless widget.button.blank? %>
9
- <p>
10
- <%= link_to widget.button.title, scrivito_path(widget.button), class: "btn btn-lg btn-primary", role: "button" %>
11
- </p>
12
- <% end %>
6
+ <%= scrivito_tag :div, widget, :panel_content %>
13
7
  </div>
14
8
  </div>
15
9
  </div>
@@ -1,5 +1,3 @@
1
- require 'scrivito_advanced_editors'
2
-
3
1
  module ScrivitoElasticSliderWidget
4
2
  class Engine < ::Rails::Engine
5
3
  isolate_namespace ScrivitoElasticSliderWidget
@@ -1,3 +1,3 @@
1
1
  module ScrivitoElasticSliderWidget
2
- VERSION = "0.66.0"
2
+ VERSION = "0.90.0"
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.66.0
4
+ version: 0.90.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -26,20 +26,6 @@ dependencies:
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: scrivito
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">"
32
- - !ruby/object:Gem::Version
33
- version: 0.65.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">"
39
- - !ruby/object:Gem::Version
40
- version: 0.65.0
41
- - !ruby/object:Gem::Dependency
42
- name: scrivito_advanced_editors
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -80,7 +66,6 @@ files:
80
66
  - app/assets/images/scrivito_elastic_slider_widget/widget_preview_teaser_slider_panel.png
81
67
  - app/assets/stylesheets/scrivito_elastic_slider_widget.css.scss
82
68
  - app/assets/stylesheets/scrivito_elastic_slider_widget/application.css
83
- - app/assets/stylesheets/scrivito_elastic_slider_widget/editing.css
84
69
  - app/models/elastic_slider_panel_widget.rb
85
70
  - app/models/elastic_slider_widget.rb
86
71
  - app/views/elastic_slider_panel_widget/details.html.erb
@@ -88,12 +73,10 @@ files:
88
73
  - app/views/elastic_slider_widget/details.html.erb
89
74
  - app/views/elastic_slider_widget/show.html.erb
90
75
  - app/views/elastic_slider_widget/thumbnail.html.erb
91
- - config/routes.rb
92
76
  - lib/scrivito_elastic_slider_widget.rb
93
77
  - lib/scrivito_elastic_slider_widget/engine.rb
94
78
  - lib/scrivito_elastic_slider_widget/version.rb
95
79
  - lib/tasks/scrivito_elastic_slider_tasks.rake
96
- - scrivito/migrate/0_create_elastic_slider_widget.rb
97
80
  homepage: https://www.scrivito.com
98
81
  licenses:
99
82
  - LGPL-3.0
@@ -1,32 +0,0 @@
1
- /* additional tools */
2
- .scrivito_elastic_slider_widget_add-new-panel {
3
- background-color: #33312d;
4
- color: white;
5
- display: block;
6
- padding: 5px;
7
- position: absolute;
8
- left: 10px;
9
- top: 10px;
10
- z-index: 1;
11
- width: auto;
12
- height: 24px;
13
- font-size: 15px;
14
- line-height: 15px;
15
- text-align: center;
16
- cursor: pointer;
17
- }
18
-
19
- .scrivito_elastic_slider_widget_add-new-panel * {
20
- margin-right: 5px;
21
- }
22
-
23
- /* Details view */
24
- .details-view .item {display: block; height: 100px; margin-bottom: 10px; overflow: hidden;}
25
- .details-view .item img {clear: left; max-height: 100%; float: left; width: 20%;}
26
- .details-view .item .container {margin: 0; max-width: 100%; padding: 0;}
27
- .details-view .item .carousel-caption {bottom: 0; left: 0; padding: 0; position: relative;}
28
- .details-view .item .carousel-caption h1 {font-size: 16px; min-height: 25px; padding: 0 20px; text-align: left; width: 80%;}
29
- .details-view .item .carousel-caption .content {float: left; max-width: 80%; padding: 0 0 0 20px;}
30
- .details-view .item .carousel-caption .content p {float: left; font-size: 14px; padding: 0 8px 0 0;}
31
- .details-view .item .carousel-caption .content p a {font-size: 14px; padding: 2px 8px;}
32
-
data/config/routes.rb DELETED
@@ -1,4 +0,0 @@
1
- Rails.application.routes.draw do
2
- get '/scrivito_elastic_slider_widget/add_new_panel', to: 'scrivito_elastic_slider_widget/elastic_slider_widget#add_new_panel'
3
- end
4
-
@@ -1,21 +0,0 @@
1
- class CreateElasticSliderWidget < ::Scrivito::Migration
2
- def up
3
- Scrivito::ObjClass.create(
4
- name: 'ElasticSliderWidget',
5
- is_binary: false,
6
- attributes: [
7
- {name: 'panels', type: :widget},
8
- ]
9
- )
10
- Scrivito::ObjClass.create(
11
- name: 'ElasticSliderPanelWidget',
12
- is_binary: false,
13
- attributes: [
14
- {name: 'image', type: :reference},
15
- {name: 'headline', type: :string },
16
- {name: 'content', type: :text},
17
- {name: 'button', type: :link},
18
- ]
19
- )
20
- end
21
- end