udongo 6.4.0 → 6.4.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/app/decorators/content_row_decorator.rb +12 -0
- data/changelog.md +5 -0
- data/lib/udongo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7af3025b7000b2796022a990432ad72423452f12
|
|
4
|
+
data.tar.gz: fddc5df340c155adbb57a7c825ebc47317388059
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30ad50179b1fa591933b7e0af3cac9950875ee9b14849db4dc96b896948a8ff005eab5a05f39317b36ac3ad2bc633f08e1fb75b84b3329cdf86c302c5d393570
|
|
7
|
+
data.tar.gz: dd2b398e65166f6a1824ef1232f86a4fc43e3260d6f17c57d9741e22a243f2478accbea549b9a3eda2967d6e44a00ba490dfb44ff04e717f61b5d9e908ce151d
|
|
@@ -26,4 +26,16 @@ class ContentRowDecorator < ApplicationDecorator
|
|
|
26
26
|
|
|
27
27
|
list
|
|
28
28
|
end
|
|
29
|
+
|
|
30
|
+
def styles
|
|
31
|
+
list = {}
|
|
32
|
+
list['background-color'.to_sym] = background_color if background_color.present?
|
|
33
|
+
|
|
34
|
+
%w(margin_top margin_bottom padding_top padding_bottom).each do |s|
|
|
35
|
+
str = s.split('_')
|
|
36
|
+
list["#{str.first}-#{str.last}".to_sym] = "#{send(s)}rem" if send(s).present?
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
list
|
|
40
|
+
end
|
|
29
41
|
end
|
data/changelog.md
CHANGED
data/lib/udongo/version.rb
CHANGED