adminpanel 3.4.5 → 3.4.6

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: d7f87944062cb6aa31fa304fd2c12c27f5802dbd
4
- data.tar.gz: 12ff111be7cbed0298e4c1f8131c5db5d0b4fe25
3
+ metadata.gz: e940659f65a2efe63bf924bb156203648caa9be6
4
+ data.tar.gz: fccbcb078b237866fad8e9a7295ebc90361b7849
5
5
  SHA512:
6
- metadata.gz: c1ecf13ccda0b9e97bba10abb61a567395cbd13645e6592626d9c4477ef2573c88c6495f80f5e0559bdfff84a2d4a03b108f6793653f4544f580955f7fd74852
7
- data.tar.gz: dca644cf10561229cf9a9a5fb93aec4b0d18193e08a7283281d3c5a0dc6b87c4cc5ba3930c580ad6a66bbc4800b13355b2517c4029e8760d5ac165c492686210
6
+ metadata.gz: 2eb1aa070107a500cbf470671ddb4998d74dc905d5ccb960d68961dbb2165dcb2db0deacfd9c5f624a154ec1126117a423420fbf8205357ea308cad73421c37c
7
+ data.tar.gz: d535cd98583a48ad105b0aba7667c425ec95dad910065336a59abd04583e466e2962938c90f02db8ddd3486a1b07e4c4bc1e45f929933c5471f35abe06b36998
@@ -68,7 +68,11 @@ module Adminpanel
68
68
  link_to(object.send("#{attribute}_url").split('/').last, object.try(:send, "#{attribute}_url")) if object.send("#{attribute}_url").present?
69
69
  when 'image_field'
70
70
  content_tag :ul do
71
- image_tag(object.send("#{attribute}_url", :thumb))
71
+ if object.send("#{attribute}_url").present?
72
+ image_tag(object.send("#{attribute}_url", :thumb))
73
+ else
74
+ 'N/A'
75
+ end
72
76
  end
73
77
  when 'boolean'
74
78
  if object.send(attribute)
@@ -52,7 +52,7 @@ module Adminpanel
52
52
  end
53
53
  end
54
54
  end
55
- return "field #{field} 'label' property not found :("
55
+ return field
56
56
  end
57
57
 
58
58
  # returns the attributes that should be shown in the correspondin view
@@ -36,6 +36,7 @@ es:
36
36
  too_short: 'es muy corta, mínimo 6 caracteres'
37
37
  greater_than: "debe ser mayor a %{count}"
38
38
  less_than: "debe ser menor que %{count}"
39
+ required: 'es obligatoria'
39
40
  time:
40
41
  formats:
41
42
  default: '%d/%m/%Y'
@@ -1,3 +1,3 @@
1
1
  module Adminpanel
2
- VERSION = '3.4.5'
2
+ VERSION = '3.4.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adminpanel
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.5
4
+ version: 3.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Ramon Camacho
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-17 00:00:00.000000000 Z
13
+ date: 2017-08-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails