scrivito_tabbed_content_widget 0.70.2 → 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 +4 -4
- data/README.md +13 -3
- data/app/views/tabbed_content_tab_widget/details.html.erb +2 -2
- data/app/views/tabbed_content_widget/show.html.erb +3 -2
- data/lib/scrivito_tabbed_content_widget/version.rb +1 -1
- metadata +2 -18
- data/config/routes.rb +0 -3
- data/scrivito/migrate/0_create_tabbed_content_widget.rb +0 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 253f2b4985fe77c60536313a586c8190204996e2
|
|
4
|
+
data.tar.gz: bfca9a9f4de255ebe4b311828d3b479ee7584f55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
##
|
|
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
|
-
|
|
19
|
+
```css
|
|
20
|
+
.bg-red {
|
|
21
|
+
background-color: red;
|
|
22
|
+
}
|
|
23
|
+
```
|
|
14
24
|
|
|
15
|
-
|
|
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
|
-
<
|
|
7
|
-
<%=
|
|
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
|
-
</
|
|
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>
|
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.
|
|
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-
|
|
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
|
data/config/routes.rb
DELETED
|
@@ -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
|
-
|