scrivito_two_column_widget 0.0.3 → 0.0.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/two_column_widget.rb +11 -0
- data/lib/scrivito_two_column_widget/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 130fad2a7d19f4339fe546f6747b7c4930c1b33c
|
4
|
+
data.tar.gz: 46e111ed2c4f6d265a84c7c5357fc440127a3e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e0f174593e74f49d04ff9585454c5c76058637362903e57947744e09a26f0bca7935149f4329ae8bc0ec2ec867eadd3f78575de737f9152b771b4a34974b678
|
7
|
+
data.tar.gz: e5d4882253dcce127e4392adc9465e6a0abb1e213f17948b1914378f439f33b6d89bca213f2ac6696e9c4d8490702a47bb549a1c7dfc3cc3ad538625501e5b28
|
@@ -1,4 +1,14 @@
|
|
1
1
|
class TwoColumnWidget < Widget
|
2
|
+
attribute :column_1, :widgetlist
|
3
|
+
attribute :column_1_width, :string
|
4
|
+
attribute :column_2, :widgetlist
|
5
|
+
attribute :column_2_width, :string
|
6
|
+
|
7
|
+
attribute :column_1, :widgetlist
|
8
|
+
attribute :column_2, :widgetlist
|
9
|
+
attribute :column_1_width, :string
|
10
|
+
attribute :column_2_width, :string
|
11
|
+
|
2
12
|
def column_1_width
|
3
13
|
self[:column_1_width].presence || '6'
|
4
14
|
end
|
@@ -6,4 +16,5 @@ class TwoColumnWidget < Widget
|
|
6
16
|
def column_2_width
|
7
17
|
self[:column_2_width].presence || '6'
|
8
18
|
end
|
19
|
+
|
9
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_two_column_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.60
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|