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 +4 -4
- data/README.md +15 -10
- data/Rakefile +0 -3
- data/app/assets/images/{timeline.png → scrivito_timeline_widget.png} +0 -0
- data/app/models/timeline_widget.rb +4 -0
- data/app/views/timeline_widget/details.html.erb +1 -1
- data/app/views/timeline_widget/thumbnail.html.erb +2 -2
- data/lib/scrivito_timeline_widget/version.rb +1 -1
- metadata +3 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de9dca5cead02bc4d34b08610461ef8a3e2d0f8a
|
4
|
+
data.tar.gz: 1e2b921b1085d9a9fdd7da5f0bb3bbf1989deef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f05641d8f74820581c094ad17795355e1358a8a54004ce2d3963e2b4e6725038faa277e1d36cc4e0a27990adbb86ad3db9d9ae06d01047fa768cb19c45286174
|
7
|
+
data.tar.gz: db54af3f54a88b285abc6b08dfcc863debfa50e2e68c0db3b8df7e93f178c31be15455e56d6d106ba83ce13b8d4f014c4a91410b24f7a9142fda4e7e43ce8898
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
|
2
|
-
=====================
|
1
|
+
# ScrivitoTimelineWidget
|
3
2
|
|
4
|
-
A
|
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
|
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
|
-
##
|
15
|
+
## Localization
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
File without changes
|
@@ -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_thumbnail 'Timeline', image_tag("
|
2
|
-
|
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 %>
|
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.
|
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-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/
|
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
|