agilibox 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/assets/javascripts/agilibox/autocomplete.coffee +2 -0
- data/app/helpers/agilibox/all_helpers.rb +1 -0
- data/app/helpers/agilibox/i18n_helper.rb +5 -0
- data/app/helpers/agilibox/text_helper.rb +8 -1
- data/config/locales/common.en.yml +1 -0
- data/config/locales/common.fr.yml +1 -0
- data/lib/agilibox/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7f739bd49f416e9f7d8a573c539df4789924c07
|
4
|
+
data.tar.gz: 1b2117cc0abb18f89630d9e6cd3227867f4e0fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 823620225894206e08757a10b9f1473ed3a6bdf13bcf1381430c3a5edd9b61e9a41ad927b6a8bc2c14146b98d652ee5f04a5dae030724095779e99e96eafe215
|
7
|
+
data.tar.gz: 53b80b2fc9f2a9e6a0ac819de2b2f1bf04a06d749f865078d039fc0b08f71ddc8788f3efc6b6767fd00557cba51a54d4881c119022fe2184cf6db279ffc906a1
|
data/CHANGELOG.md
CHANGED
@@ -99,12 +99,19 @@ module Agilibox::TextHelper
|
|
99
99
|
value = l(value) if value.is_a?(Date)
|
100
100
|
value = value.to_s
|
101
101
|
|
102
|
+
|
102
103
|
html_label = content_tag(:strong, class: "info-label") { label }
|
103
104
|
span_css_class = "info-value #{object_type}-#{attribute}"
|
104
105
|
html_value = content_tag(:span, class: span_css_class) { value }
|
105
106
|
separator_html = content_tag(:span, class: "info-separator") { separator }
|
106
107
|
|
107
|
-
|
108
|
+
if value.blank?
|
109
|
+
container_css_class = "info blank"
|
110
|
+
else
|
111
|
+
container_css_class = "info"
|
112
|
+
end
|
113
|
+
|
114
|
+
content_tag(tag, class: container_css_class) do
|
108
115
|
[html_label, separator_html, html_value].join.html_safe
|
109
116
|
end
|
110
117
|
end # def info
|
data/lib/agilibox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agilibox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails-i18n
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- Rakefile
|
37
37
|
- app/assets/config/agilibox_manifest.js
|
38
38
|
- app/assets/javascripts/agilibox/all.coffee
|
39
|
+
- app/assets/javascripts/agilibox/autocomplete.coffee
|
39
40
|
- app/assets/javascripts/agilibox/filters_date.coffee
|
40
41
|
- app/assets/javascripts/agilibox/form_anchor_referer.coffee
|
41
42
|
- app/assets/javascripts/agilibox/form_reset.coffee
|
@@ -62,6 +63,7 @@ files:
|
|
62
63
|
- app/helpers/agilibox/button_helper.rb
|
63
64
|
- app/helpers/agilibox/filters_helper.rb
|
64
65
|
- app/helpers/agilibox/form_helper.rb
|
66
|
+
- app/helpers/agilibox/i18n_helper.rb
|
65
67
|
- app/helpers/agilibox/link_helper.rb
|
66
68
|
- app/helpers/agilibox/pagination_helper.rb
|
67
69
|
- app/helpers/agilibox/routes_helper.rb
|