five-two-nw-olivander 0.2.0.27 → 0.2.0.28
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c45764c6c9e4bf1843e221a422aecea335c380b1abbe7fb643181dd6ffda557
|
4
|
+
data.tar.gz: 36bdba6f19f10ac877cb24c384a008fb2d3708ee6f5f8225832bbb3b22f51bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa80ab57d73757839710dad59b8da5acd9acdff1cf9acc4e636767cc815faf5035984e6e5495c0ed109eb2a7869982ac69269db972dc1dc8070e8b116d439ae
|
7
|
+
data.tar.gz: 5160226bbfdad965116af14016688e8a731be970c6b40503c036b9a5c11508ac838602a687c6878dfe9b836a41f5687dfd78d571523793609308ad0b7f2778c7
|
@@ -19,7 +19,12 @@
|
|
19
19
|
- when :integer, :float
|
20
20
|
= val
|
21
21
|
- when :string, :text
|
22
|
-
|
22
|
+
- if f.sym.to_s.ends_with?('_url', '_link')
|
23
|
+
= link_to val, val, target: f.sym
|
24
|
+
- elsif @resource.respond_to?("#{sym}_as_html?") && @resource.send("#{sym}_as_html?")
|
25
|
+
= raw(val)
|
26
|
+
- else
|
27
|
+
= simple_format(val)
|
23
28
|
- when :boolean
|
24
29
|
- icon_class = val ? 'fa-check text-success' : 'fa-times text-danger'
|
25
30
|
%i.fa{ class: icon_class }
|
data/lib/olivander/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: five-two-nw-olivander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dennis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chartkick
|