scrivito_icon_box_widget 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d21388c61ad2e989cc99ba056d77f12c12272589
|
4
|
+
data.tar.gz: fa183d4e58556be4687dae4c926783e5125d79e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e36a657072263a47062aff37095e5d0b3dc02f1297ccc76b4f3849aef3115aca4994567d999c506e4ec7f0d706cf57de2faaf19b8dde266c553e88b52731dbf6
|
7
|
+
data.tar.gz: 61e5df9162f9c13dd326b3565aa6490b984faf60b10e36d6238f485f985f124f9848c63b852c70d1828ee39fe169e02bc0b802972807bb58bdea96536c51f51e
|
@@ -9,17 +9,17 @@ class IconBoxWidget < Widget
|
|
9
9
|
if Obj.respond_to?('selectable_color_classes')
|
10
10
|
Obj.selectable_color_classes(class_name, attribute)
|
11
11
|
else
|
12
|
-
|
12
|
+
['', 'black', 'gray', 'light-gray', 'red', 'green', 'blue', 'yellow']
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.icons
|
17
|
-
|
17
|
+
["none", "plus","minus","warning","paw","send","car","sliders","tree","bell","certificate","cloud","comment","dashboard","female","male","flag","globe","heart","leaf","plane","refresh","rocket","question","star","unlock"]
|
18
18
|
end
|
19
19
|
|
20
20
|
def self.caption
|
21
21
|
elems = {}
|
22
|
-
IconBoxWidget.
|
22
|
+
IconBoxWidget.icons.each do |elem|
|
23
23
|
elems[elem] = "<i class='fa fa-#{elem}'></i>#{elem}".html_safe
|
24
24
|
end
|
25
25
|
return elems
|
@@ -39,9 +39,4 @@ class IconBoxWidget < Widget
|
|
39
39
|
c << self.color
|
40
40
|
c.join(' ')
|
41
41
|
end
|
42
|
-
|
43
|
-
private
|
44
|
-
def self.icon_list
|
45
|
-
["none", "plus","minus","warning","paw","send","car","sliders","tree","bell","certificate","cloud","comment","dashboard","female","male","flag","globe","heart","leaf","plane","refresh","rocket","question","star","unlock"]
|
46
|
-
end
|
47
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_icon_box_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.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-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|