scrivito_timeline_widget 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +4 -0
- data/README.md +22 -0
- data/Rakefile +24 -0
- data/app/assets/stylesheets/scrivito_timeline_widget.css.scss +84 -0
- data/app/models/timeline_widget.rb +6 -0
- data/app/views/timeline_widget/details.html.erb +3 -0
- data/app/views/timeline_widget/show.html.erb +14 -0
- data/app/views/timeline_widget/thumbnail.html.erb +3 -0
- data/lib/scrivito_timeline_widget.rb +4 -0
- data/lib/scrivito_timeline_widget/engine.rb +5 -0
- data/lib/scrivito_timeline_widget/version.rb +3 -0
- data/lib/tasks/scrivito_timeline_widget_tasks.rake +4 -0
- metadata +98 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7dcc5524288a3e67c76b8e7e80750ab4f6dd4954
|
4
|
+
data.tar.gz: d3b72fd85552e268b9d496f41ddce819e73cf42e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ad1b027972f0da79f82476155adcd32e2ec25c61c25b4259cc087da256360a73b03bc91c50daa9867865a18ddc83755ced5d26978405ccd33df4cd8e903552d9
|
7
|
+
data.tar.gz: 3ac4b22772114af4b87b6c4b45f3b4794fe553cfc8e6235ae50ebaad7f50c530a12443be165ff2dcc0776113555902f2c35f84a3144febc77db1674fc2567d67
|
data/LICENSE
ADDED
data/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
scrivito_table_widget
|
2
|
+
=====================
|
3
|
+
|
4
|
+
A Widget for Scrivito for a timeline.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's `Gemfile`:
|
9
|
+
|
10
|
+
gem 'scrivito_timeline_widget'
|
11
|
+
|
12
|
+
Add this line to your application stylesheet manifest:
|
13
|
+
|
14
|
+
*= require scrivito_timeline_widget
|
15
|
+
|
16
|
+
## Contributing
|
17
|
+
|
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
|
data/Rakefile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'ScrivitoTimelineWidget'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
load 'rails/tasks/statistics.rake'
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
Bundler::GemHelper.install_tasks
|
24
|
+
|
@@ -0,0 +1,84 @@
|
|
1
|
+
.timeline_widget {
|
2
|
+
overflow: hidden;
|
3
|
+
.main-headline {
|
4
|
+
padding: 10px 0;
|
5
|
+
margin: 10px auto;
|
6
|
+
width: 75%;
|
7
|
+
text-align: center;
|
8
|
+
background-color: white;
|
9
|
+
}
|
10
|
+
|
11
|
+
.content-top {
|
12
|
+
padding: 7px 0;
|
13
|
+
margin: 20px auto;
|
14
|
+
text-align: center;
|
15
|
+
background-color: white;
|
16
|
+
width: 75%;
|
17
|
+
p {
|
18
|
+
margin: 0;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.row {
|
23
|
+
margin: 30px 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
.row .col-md-6 {
|
27
|
+
width: 45%;
|
28
|
+
padding: 0;
|
29
|
+
text-align: center;
|
30
|
+
&.left {
|
31
|
+
margin-right: 5%;
|
32
|
+
padding-left: 15px;
|
33
|
+
}
|
34
|
+
&.right {
|
35
|
+
margin-left: 5%;
|
36
|
+
padding-right: 15px;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
&:after {
|
41
|
+
content: "";
|
42
|
+
background-color: #eee;
|
43
|
+
width: 6px;
|
44
|
+
position: absolute;
|
45
|
+
top: 0px;
|
46
|
+
bottom: 0px;
|
47
|
+
left: 0;
|
48
|
+
right: 0;
|
49
|
+
margin: 0 auto;
|
50
|
+
z-index: -1;
|
51
|
+
}
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
@media (max-width: 991px) {
|
56
|
+
.timeline_widget {
|
57
|
+
&:after {
|
58
|
+
margin: 0 0 0 52px;
|
59
|
+
}
|
60
|
+
|
61
|
+
.main-headline,
|
62
|
+
.content-top {
|
63
|
+
text-align: left;
|
64
|
+
padding-left: 0px;
|
65
|
+
width: auto;
|
66
|
+
margin-left: 52px;
|
67
|
+
}
|
68
|
+
|
69
|
+
.scrivito-icon-box {
|
70
|
+
margin-left: -52px;
|
71
|
+
}
|
72
|
+
|
73
|
+
.row .col-md-6 {
|
74
|
+
&.left,
|
75
|
+
&.right {
|
76
|
+
width: auto;
|
77
|
+
margin-left: 52px;
|
78
|
+
padding-left: 20px;
|
79
|
+
margin-right: 0;
|
80
|
+
padding-right: 0px;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div class="timeline_widget">
|
2
|
+
<% if widget.headline.present? || scrivito_in_editable_view? %>
|
3
|
+
<%= scrivito_tag :h3, widget, :headline, class: 'main-headline' %>
|
4
|
+
<% end %>
|
5
|
+
<% if widget.main_content_top.present? || scrivito_in_editable_view? %>
|
6
|
+
<%= scrivito_tag :div, widget, :main_content_top, class: 'content-top' %>
|
7
|
+
<% end %>
|
8
|
+
<% if widget.main_content_left.present? || widget.main_content_right.present? || scrivito_in_editable_view? %>
|
9
|
+
<div class="row">
|
10
|
+
<%= scrivito_tag :div, widget, :main_content_left, class: 'col-md-6 left' %>
|
11
|
+
<%= scrivito_tag :div, widget, :main_content_right, class: 'col-md-6 right' %>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
14
|
+
</div>
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: scrivito_timeline_widget
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Scrivito
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
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
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: scrivito
|
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
|
+
- !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
|
+
description: A widget for scrivito to create a timeline.
|
56
|
+
email:
|
57
|
+
- support@scrivito.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE
|
63
|
+
- README.md
|
64
|
+
- Rakefile
|
65
|
+
- app/assets/stylesheets/scrivito_timeline_widget.css.scss
|
66
|
+
- app/models/timeline_widget.rb
|
67
|
+
- app/views/timeline_widget/details.html.erb
|
68
|
+
- app/views/timeline_widget/show.html.erb
|
69
|
+
- app/views/timeline_widget/thumbnail.html.erb
|
70
|
+
- lib/scrivito_timeline_widget.rb
|
71
|
+
- lib/scrivito_timeline_widget/engine.rb
|
72
|
+
- lib/scrivito_timeline_widget/version.rb
|
73
|
+
- lib/tasks/scrivito_timeline_widget_tasks.rake
|
74
|
+
homepage: https://www.scrivito.com
|
75
|
+
licenses:
|
76
|
+
- LGPL-3.0
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.4.5
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: A widget for scrivito to create a timeline.
|
98
|
+
test_files: []
|