scrivito_tabbed_content_widget 0.70.2 → 0.90.0

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: 9a0f6ee340762afd2228fdc7f33d312648eed618
4
- data.tar.gz: 67b493daad18acfeb60a4269e9623383aa634e5a
3
+ metadata.gz: 253f2b4985fe77c60536313a586c8190204996e2
4
+ data.tar.gz: bfca9a9f4de255ebe4b311828d3b479ee7584f55
5
5
  SHA512:
6
- metadata.gz: 2925a382e8dbb15d6216b7f55c383619857c56bb0a04fdecdf22873462abd835e67f5dce4ba40f2fba8ffeaecf6e58452f1e061be3937b63a4936a80af5ce4bc
7
- data.tar.gz: 178cf293e95f18c1e0bc2cbae9eeef5b4b12e97b82531360a30dfeeb9afd5929fc114e520d56adcf9d676a20e5936d2d6d7fc20595081bd0ff26bd0a68f94bd6
6
+ metadata.gz: 1bcbae6d824b548d142439d2176ebaf8ef015a61a627110185273e2e91d99d0c18dd5222ac90ba1a4c0f38cc52c7fe9473ca1b0e65a7a5a15843ef3c6a9e8e33
7
+ data.tar.gz: 9fbf3eec23129552295c1e2a511efb077b669c8064a2ba3ffdf03e536f086aa09977642c91db9f06ca91c318b32c33b17191817f3166809c9519edefcc70dd83
data/README.md CHANGED
@@ -2,14 +2,24 @@
2
2
 
3
3
  This Gem adds Tabbed Contents to your app. Fill the Gem with Tabs and fill each tab with a widget.
4
4
 
5
+ ## Prerequists
6
+
7
+ This widget requires bootstrap.
8
+
5
9
  ## Installation
6
10
 
7
11
  Add the gem to your Gemfile:
8
12
 
9
13
  gem 'scrivito_tabbed_content_widget'
10
14
 
11
- ## License
15
+ ## Customization
16
+
17
+ This widget includes an attribute for a background color of a panel. The value of this attribute is used as CSS class. If ypu want to use the feature add a CSS rule for your selectable colors:
12
18
 
13
- Copyright (c) 2009 - 2015 Infopark AG (http://www.infopark.com)
19
+ ```css
20
+ .bg-red {
21
+ background-color: red;
22
+ }
23
+ ```
14
24
 
15
- This software can be used and modified under the LGPL-3.0. Please refer to http://www.gnu.org/licenses/lgpl-3.0.html for the license text.
25
+ You can also use [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors #color_picker) color picker to have a better visualation of selectable color classes.
@@ -3,8 +3,8 @@
3
3
  <%= link_to '(details)', '#', 'data-scrivito-toggle-details' => widget.id %>
4
4
  <div class="scrivito-details-<%= widget.id %>">
5
5
  <div>
6
- <h5>Background Color</h5>
7
- <%= render 'scrivito_advanced_editors/color_picker', widget: widget, attribute: :background_color %>
6
+ <b>Background Color</b>
7
+ <%= scrivito_tag :div, widget, :background_color, data: {colors_list: scrivito_selectable_color_classes('accordion_widget', 'background_color')} %>
8
8
  </div>
9
9
  </div>
10
10
  </div>
@@ -7,10 +7,11 @@
7
7
  </a>
8
8
  </li>
9
9
  <% end %>
10
- </div>
10
+ </ul>
11
+
11
12
  <div class="tab-content">
12
13
  <% widget.tabs.each_with_index do |tab, i| %>
13
14
  <%= scrivito_tag :div, tab, :content, id: "tab-#{widget.id}-#{i}", class: "#{tab.background_color} tab-pane #{'active' if i == 0}" %>
14
15
  <% end %>
15
16
  </div>
16
- </div>
17
+ </div>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTabbedContentWidget
2
- VERSION = "0.70.2"
2
+ VERSION = "0.90.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_tabbed_content_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.2
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-09-16 00:00:00.000000000 Z
11
+ date: 2015-12-10 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'
27
- - !ruby/object:Gem::Dependency
28
- name: haml
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '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'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rake
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -69,12 +55,10 @@ files:
69
55
  - app/views/tabbed_content_widget/details.html.erb
70
56
  - app/views/tabbed_content_widget/show.html.erb
71
57
  - app/views/tabbed_content_widget/thumbnail.html.erb
72
- - config/routes.rb
73
58
  - lib/scrivito_tabbed_content_widget.rb
74
59
  - lib/scrivito_tabbed_content_widget/engine.rb
75
60
  - lib/scrivito_tabbed_content_widget/version.rb
76
61
  - lib/tasks/scrivito_tabbed_content_widget_tasks.rake
77
- - scrivito/migrate/0_create_tabbed_content_widget.rb
78
62
  homepage: https://www.scrivito.com
79
63
  licenses:
80
64
  - LGPL-3.0
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
- get '/scrivito_tabbed_content_widget/add_new_tab', to: 'scrivito_tabbed_content_widget/tabbed_content_widget#add_new_tab'
3
- end
@@ -1,20 +0,0 @@
1
- class CreateTabbedContentWidget < ::Scrivito::Migration
2
- def up
3
- Scrivito::ObjClass.create(
4
- name: 'TabbedContentWidget',
5
- is_binary: false,
6
- attributes: [
7
- {name: 'tabs', type: :widget},
8
- ]
9
- )
10
- Scrivito::ObjClass.create(
11
- name: 'TabbedContentTabWidget',
12
- is_binary: false,
13
- attributes: [
14
- {name: 'headline', type: :string},
15
- {name: 'content', type: :widget},
16
- ]
17
- )
18
- end
19
- end
20
-