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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4be93a1f888246578a2bf3db1d8b5a9770b445cf
4
- data.tar.gz: 605aaed3868d10a1680972958acb3f986b72dcb9
3
+ metadata.gz: 227c6fcfcc3a5f2709455e972b6bb069fc395b18
4
+ data.tar.gz: 27212cbce160e2d63bfbd20d90c399b20dccb9e8
5
5
  SHA512:
6
- metadata.gz: e9227ac94812735fbf7cce5b59f84e7ba59cbb4c743ae5398a962f2a7388e64d7010ee465eaa31e764e4acdfb790a1883efb9dc7912e3acc0732126fc5c8dc6d
7
- data.tar.gz: 58397ba1e4035a0bceee61a9e52d4e9b85c3010217a8c8a0f3036181b4793898cc3fe76b50ad2d0daa367a129420a364642542807fce6e63a2fae5b7e0e83425
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
- <div class="scrivito-title-details">
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
- <%= link_to '(details)', '#', 'data-scrivito-toggle-details' => widget.id %>
4
- <div class="scrivito-details-<%= widget.id %>">
5
- <div>
6
- <b>Background Color</b>
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 @@
1
- <%= scrivito_details_for do %>
2
- <%= scrivito_tag :div, widget, :tabs %>
3
- <% end %>
1
+ <%= scrivito_tag :div, widget, :tabs %>
@@ -1,3 +1,3 @@
1
- <%= scrivito_thumbnail 'Tabbed Content', image_tag("scrivito_tabbed_content_widget/widget_preview_tabbed.png") do %>
2
- Content Tabs
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 %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTabbedContentWidget
2
- VERSION = "0.90.1"
2
+ VERSION = "0.90.2"
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.1
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-02-24 00:00:00.000000000 Z
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