scrivito_timeline_widget 0.0.3 → 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: 111a36a60505a885146cab8d7d2a798479567925
4
- data.tar.gz: d4cb06415d5c5bac38ca3f3e402fff20f2aa8016
3
+ metadata.gz: de9dca5cead02bc4d34b08610461ef8a3e2d0f8a
4
+ data.tar.gz: 1e2b921b1085d9a9fdd7da5f0bb3bbf1989deef7
5
5
  SHA512:
6
- metadata.gz: 564f807b0073d68799d7c725919587c986b4179cd8b9dd27c589c938394c46c6c2e9580b622d9209b4144249b7d012367eadd4136435c032212e676f1d071a4f
7
- data.tar.gz: ee20abc3124d7a3b66b15689395ebee0c6868f97b3112671d243a27e7fc5e89c85ca033b830254fcb8e0999fe8308e89c43b672954b9bae8dbc935ab9b28e838
6
+ metadata.gz: f05641d8f74820581c094ad17795355e1358a8a54004ce2d3963e2b4e6725038faa277e1d36cc4e0a27990adbb86ad3db9d9ae06d01047fa768cb19c45286174
7
+ data.tar.gz: db54af3f54a88b285abc6b08dfcc863debfa50e2e68c0db3b8df7e93f178c31be15455e56d6d106ba83ce13b8d4f014c4a91410b24f7a9142fda4e7e43ce8898
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
- scrivito_timeline_widget
2
- =====================
1
+ # ScrivitoTimelineWidget
3
2
 
4
- A Widget for Scrivito for a timeline.
3
+ A Scrivito widget that represents a nicely styled item of a timeline. Use as many items as required to build the timeline.
5
4
 
6
5
  ## Installation
7
6
 
8
- Add this line to your application's `Gemfile`:
7
+ Add this line to your application's Gemfile:
9
8
 
10
9
  gem 'scrivito_timeline_widget'
11
10
 
@@ -13,10 +12,16 @@ Add this line to your application stylesheet manifest:
13
12
 
14
13
  *= require scrivito_timeline_widget
15
14
 
16
- ## Contributing
15
+ ## Localization
17
16
 
18
- 1. Fork it ( https://github.com/Scrivito/scrivito_timeline_widget/fork )
19
- 2. Create your feature branch (`git checkout -b my-new-feature`)
20
- 3. Commit your changes (`git commit -am 'Add some feature'`)
21
- 4. Push to the branch (`git push origin my-new-feature`)
22
- 5. Create a new Pull Request
17
+ The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
18
+
19
+ ```yaml
20
+ en:
21
+ scrivito_timeline_widget:
22
+ thumbnail:
23
+ title: Timeline
24
+ description: Add am element of a vertical Timeline
25
+ details:
26
+ headline: Headline
27
+ ```
data/Rakefile CHANGED
@@ -16,9 +16,6 @@ end
16
16
 
17
17
 
18
18
 
19
- load 'rails/tasks/statistics.rake'
20
-
21
-
22
19
 
23
20
  Bundler::GemHelper.install_tasks
24
21
 
@@ -3,4 +3,8 @@ class TimelineWidget < Widget
3
3
  attribute :main_content_top, :widgetlist
4
4
  attribute :main_content_left, :widgetlist
5
5
  attribute :main_content_right, :widgetlist
6
+
7
+ def valid_widget_classes_for(field_name)
8
+ Scrivito.models.widgets.to_a - [TimelineWidget]
9
+ end
6
10
  end
@@ -1,3 +1,3 @@
1
- <%= scrivito_details_for 'Headline' do %>
1
+ <%= scrivito_details_for t('scrivito_timeline_widget.details.headline', default: 'Headline') do %>
2
2
  <%= scrivito_tag :div, widget, :headline %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
- <%= scrivito_thumbnail 'Timeline', image_tag("timeline.png") do %>
2
- Creates a element of a vertical Timeline
1
+ <%= scrivito_thumbnail t('scrivito_timeline_widget.thumbnail.title', default: 'Timeline'), image_tag("scrivito_timeline_widget.png") do %>
2
+ <%= t('scrivito_timeline_widget.thumbnail.description', default: 'Add an element of a vertical Timeline') %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTimelineWidget
2
- VERSION = "0.0.3"
2
+ VERSION = "0.90.1"
3
3
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_timeline_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
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-08-06 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: scrivito
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +24,6 @@ dependencies:
38
24
  - - ">="
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
27
  description: A widget for scrivito to create a timeline.
56
28
  email:
57
29
  - support@scrivito.com
@@ -62,7 +34,7 @@ files:
62
34
  - LICENSE
63
35
  - README.md
64
36
  - Rakefile
65
- - app/assets/images/timeline.png
37
+ - app/assets/images/scrivito_timeline_widget.png
66
38
  - app/assets/stylesheets/scrivito_timeline_widget.css.scss
67
39
  - app/models/timeline_widget.rb
68
40
  - app/views/timeline_widget/details.html.erb