scrivito_tabbed_content_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: 253f2b4985fe77c60536313a586c8190204996e2
4
- data.tar.gz: bfca9a9f4de255ebe4b311828d3b479ee7584f55
3
+ metadata.gz: 4be93a1f888246578a2bf3db1d8b5a9770b445cf
4
+ data.tar.gz: 605aaed3868d10a1680972958acb3f986b72dcb9
5
5
  SHA512:
6
- metadata.gz: 1bcbae6d824b548d142439d2176ebaf8ef015a61a627110185273e2e91d99d0c18dd5222ac90ba1a4c0f38cc52c7fe9473ca1b0e65a7a5a15843ef3c6a9e8e33
7
- data.tar.gz: 9fbf3eec23129552295c1e2a511efb077b669c8064a2ba3ffdf03e536f086aa09977642c91db9f06ca91c318b32c33b17191817f3166809c9519edefcc70dd83
6
+ metadata.gz: e9227ac94812735fbf7cce5b59f84e7ba59cbb4c743ae5398a962f2a7388e64d7010ee465eaa31e764e4acdfb790a1883efb9dc7912e3acc0732126fc5c8dc6d
7
+ data.tar.gz: 58397ba1e4035a0bceee61a9e52d4e9b85c3010217a8c8a0f3036181b4793898cc3fe76b50ad2d0daa367a129420a364642542807fce6e63a2fae5b7e0e83425
data/README.md CHANGED
@@ -1,20 +1,20 @@
1
- # Scrivito Tabbed Content Widget
1
+ # ScrivitoTabbedContentWidget
2
2
 
3
- This Gem adds Tabbed Contents to your app. Fill the Gem with Tabs and fill each tab with a widget.
3
+ This gem adds a Scrivito widget for tabbed content to your page.
4
4
 
5
5
  ## Prerequists
6
6
 
7
- This widget requires bootstrap.
7
+ This widget requires Bootstrap.
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_tabbed_content_widget'
14
14
 
15
15
  ## Customization
16
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:
17
+ This widget includes an attribute for the background color of every tab. The value of this attribute is used as a CSS class. If you want to use this feature, add a CSS rule for your selectable colors:
18
18
 
19
19
  ```css
20
20
  .bg-red {
@@ -22,4 +22,4 @@ This widget includes an attribute for a background color of a panel. The value o
22
22
  }
23
23
  ```
24
24
 
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.
25
+ You can also use the [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors #color_picker) color picker to have a better visualization of the selectable color classes.
@@ -18,4 +18,11 @@ class TabbedContentTabWidget < Widget
18
18
  css << self.background_color
19
19
  css.join(" ")
20
20
  end
21
+
22
+ def scrivito_selectable_color_classes
23
+ helper = ApplicationController.helpers
24
+ if helper.respond_to? 'scrivito_selectable_color_classes'
25
+ helper.scrivito_selectable_color_classes('accordion_widget', 'background_color')
26
+ end
27
+ end
21
28
  end
@@ -4,7 +4,7 @@
4
4
  <div class="scrivito-details-<%= widget.id %>">
5
5
  <div>
6
6
  <b>Background Color</b>
7
- <%= scrivito_tag :div, widget, :background_color, data: {colors_list: scrivito_selectable_color_classes('accordion_widget', 'background_color')} %>
7
+ <%= scrivito_tag :div, widget, :background_color, data: {colors_list: widget.scrivito_selectable_color_classes} %>
8
8
  </div>
9
9
  </div>
10
10
  </div>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTabbedContentWidget
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_tabbed_content_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-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito