scrivito_tabbed_content_widget 0.0.65 → 0.66.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: 0f8d256e378c379cc6fe5937a27b970435edfccc
4
- data.tar.gz: 06f491fbb0bd7e26e25075375ffca976dd9526f7
3
+ metadata.gz: 55058f51ec19de65444df2fc0d5a3c7d47275658
4
+ data.tar.gz: 80ea2c7bd0e343ff515f236d41c2d778267237d4
5
5
  SHA512:
6
- metadata.gz: 584db0f18f4566444de634e8f1cce96d4f8293efe0f02b4ea1016c04ecc7063b08e1ab7ec1b6cb6b16c548e341b6044d5dfa3fe0ae87e5066f3f6dbeb3cdb8ba
7
- data.tar.gz: 052609d6d2fb26f65047c9ff503549e69314a5f017e67a14f8f624bddc9fa76a4d54276247c0111fb9f1272158a47a017ef3efa7e9a9f374a344a6a8494e9f94
6
+ metadata.gz: 1cc0a60c5eea66baeb32d7253afbff0cd017d3da05e8331519026492948912ba726f28c3a1cd1e186db669085403ba453c9a4167b53f9f10f0a75ad74039d0e5
7
+ data.tar.gz: ea41f2c9a3b658db917ae5dc060dc81438aa9f35db9d2549af4b360f69bddb81146726050a4e47fd3f4e495915066786d16a29652f523d08874d56681cf0232d
data/README.md CHANGED
@@ -10,11 +10,11 @@ Add the gem to your Gemfile:
10
10
 
11
11
  Add this line to your applications stylesheet manifest
12
12
 
13
- *= require scrivito_tabbed_content_widget
13
+ *= require scrivito_tabbed_content_widget
14
14
 
15
15
  Add this line to your applications javascript manifest
16
16
 
17
- //= require scrivito_tabbed_content_widget
17
+ //= require scrivito_tabbed_content_widget
18
18
 
19
19
  ## License
20
20
 
@@ -1,8 +1,12 @@
1
1
  class TabbedContentWidget < Widget
2
- attribute :tabs, :widgetlist, default: [
3
- TabbedContentTabWidget.new(title: 'First Tab'),
4
- TabbedContentTabWidget.new(title: 'Second Tab')
5
- ]
2
+ attribute :tabs, :widgetlist
3
+
4
+ default_for :tabs do |attribute, scrivito_user|
5
+ [
6
+ TabbedContentTabWidget.new(title: 'First Tab'),
7
+ TabbedContentTabWidget.new(title: 'Second Tab')
8
+ ]
9
+ end
6
10
 
7
11
  def valid_widget_classes_for(field_name)
8
12
  [TabbedContentTabWidget]
@@ -1,9 +1,9 @@
1
- <div class="scrivito-tab-title-details">
1
+ <div class="scrivito-title-details">
2
2
  <%= scrivito_tag :h4, widget, :title %>
3
- <%= link_to '(details)', '#', 'data-scrivito-tab-toggle-details' => widget.id %>
4
- <div class="scrivito-tab-details-<%= widget.id %>">
3
+ <%= link_to '(details)', '#', 'data-scrivito-toggle-details' => widget.id %>
4
+ <div class="scrivito-details-<%= widget.id %>">
5
5
  <div>
6
- <b>Background Color</b>
6
+ <h5>Background Color</h5>
7
7
  <%= render 'scrivito_advanced_editors/color_picker', widget: widget, attribute: :background_color %>
8
8
  </div>
9
9
  </div>
@@ -1,3 +1,3 @@
1
1
  <%= scrivito_details_for do %>
2
- <%= scrivito_tag :div, widget, :tabs, 'data-scrivito-modal-size' => 'large' %>
2
+ <%= scrivito_tag :div, widget, :tabs %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTabbedContentWidget
2
- VERSION = "0.0.65"
2
+ VERSION = "0.66.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.0.65
4
+ version: 0.66.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-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito