scrivito_tabbed_content_widget 0.90.1 → 0.90.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/app/views/tabbed_content_tab_widget/details.html.erb +6 -9
- data/app/views/tabbed_content_widget/details.html.erb +1 -3
- data/app/views/tabbed_content_widget/thumbnail.html.erb +2 -2
- data/lib/scrivito_tabbed_content_widget/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 227c6fcfcc3a5f2709455e972b6bb069fc395b18
|
4
|
+
data.tar.gz: 27212cbce160e2d63bfbd20d90c399b20dccb9e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2b0f78c6522a9698545b843804b33caf887af74e5087c53cf398465ce155ab1f4d2281f471848bebdc763099de8c2b1e931d00a82196f2b330be27ff7338d99
|
7
|
+
data.tar.gz: 58150f4d4ede0d113d9a510d0f065d0dd170ca0312c2eac931e014c5b252da7e7e0c391df3b4965f5c92218532f45b36eac21b902776bad1092a09f36503e6de
|
data/README.md
CHANGED
@@ -23,3 +23,18 @@ This widget includes an attribute for the background color of every tab. The val
|
|
23
23
|
```
|
24
24
|
|
25
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.
|
26
|
+
|
27
|
+
## Localization
|
28
|
+
|
29
|
+
The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
|
30
|
+
|
31
|
+
```yaml
|
32
|
+
en:
|
33
|
+
scrivito_tabbed_content_widget:
|
34
|
+
thumbnail:
|
35
|
+
title: Tab
|
36
|
+
description: Add a tab to your page
|
37
|
+
details:
|
38
|
+
title: Title
|
39
|
+
background_color: Background Color
|
40
|
+
```
|
@@ -1,10 +1,7 @@
|
|
1
|
-
|
1
|
+
<%= scrivito_details_for do %>
|
2
|
+
<h4><%= t('scrivito_tabbed_content_widget.details.title', default: 'Title') %></h4>
|
2
3
|
<%= scrivito_tag :div, widget, :title %>
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
<%= scrivito_tag :div, widget, :background_color, data: {colors_list: widget.scrivito_selectable_color_classes} %>
|
8
|
-
</div>
|
9
|
-
</div>
|
10
|
-
</div>
|
4
|
+
<br />
|
5
|
+
<h4><%= t('scrivito_tabbed_content_widget.details.background_color', default: 'Background Color') %></h4>
|
6
|
+
<%= scrivito_tag :div, widget, :background_color, data: {colors_list: widget.scrivito_selectable_color_classes} %>
|
7
|
+
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail '
|
2
|
-
|
1
|
+
<%= scrivito_thumbnail t('scrivito_tabbed_content_widget.thumbnail.title', default: 'Tab'), image_tag("scrivito_tabbed_content_widget/widget_preview_tabbed.png") do %>
|
2
|
+
<%= t('scrivito_tabbed_content_widget.thumbnail.description', default: 'Add a tab to your page')%>
|
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.
|
4
|
+
version: 0.90.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-24 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: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
description: This Widget gives you tabbed content boxes that can be filled with widgets.
|
42
28
|
email:
|
43
29
|
- support@scrivito.com
|