scrivito_tabbed_content_widget 0.90.0 → 0.90.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4be93a1f888246578a2bf3db1d8b5a9770b445cf
|
4
|
+
data.tar.gz: 605aaed3868d10a1680972958acb3f986b72dcb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9227ac94812735fbf7cce5b59f84e7ba59cbb4c743ae5398a962f2a7388e64d7010ee465eaa31e764e4acdfb790a1883efb9dc7912e3acc0732126fc5c8dc6d
|
7
|
+
data.tar.gz: 58397ba1e4035a0bceee61a9e52d4e9b85c3010217a8c8a0f3036181b4793898cc3fe76b50ad2d0daa367a129420a364642542807fce6e63a2fae5b7e0e83425
|
data/README.md
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
#
|
1
|
+
# ScrivitoTabbedContentWidget
|
2
2
|
|
3
|
-
This
|
3
|
+
This gem adds a Scrivito widget for tabbed content to your page.
|
4
4
|
|
5
5
|
## Prerequists
|
6
6
|
|
7
|
-
This widget requires
|
7
|
+
This widget requires Bootstrap.
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
Add
|
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
|
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
|
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
|
7
|
+
<%= scrivito_tag :div, widget, :background_color, data: {colors_list: widget.scrivito_selectable_color_classes} %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
</div>
|
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.
|
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:
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|