platformx 0.0.9.6.3 → 0.0.9.6.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d13206b17878f5c0a94a1bec39a237fbb6954cca
4
- data.tar.gz: b7d0a8011dc5dcdc0212dc2457b8fe83204c440f
3
+ metadata.gz: 377abdcaa328d689203d669a11a2df2414941590
4
+ data.tar.gz: '09fda2878b5651f3f5b27a6e6a67d453b41ec22d'
5
5
  SHA512:
6
- metadata.gz: e8f847567d350d0afc9d27bc5dfe91f0c23e7dbaff94933c03727913f6fb53f061dfca7aa2aed012ed50932957826c9d7c33ccbecd55ee437eed45391ebab49e
7
- data.tar.gz: ec922c0e77cb01454c15bad2d4fa50f2601d10a0ba0d503b2efcbb65f41aecfeef47494a33d1f25e487f4d7f833609fd0482c5c1a3e04d6c4687673a585e8d74
6
+ metadata.gz: f2d6c34d0b52220b5adc8c7882b1a33fafe1764c23b7e26ea1099a918fa889d283258748d1ee3717bce5bb579634853113e356562302eed3abafb89d8533a49d
7
+ data.tar.gz: afa957b721163632b8c8ab0996489810ac4cc74c273b55e0b30ba0948e6f554f8975af7c4f74018e37d940708caa94394b0141b1aa3865b76eb3b3342f7eb6cb
@@ -231,11 +231,11 @@ EOS
231
231
  mask = "data-masked-input='#{mask}'"
232
232
  end
233
233
 
234
- if value == 0 || value.nil? || value == ""
235
- value = "0.00"
236
- else
237
- value = "%.2f" % value rescue nil
238
- end
234
+ # if value == 0 || value.nil? || value == ""
235
+ # value = "0.00"
236
+ # else
237
+ # value = "%.2f" % value rescue nil
238
+ # end
239
239
 
240
240
 
241
241
  tb = <<EOS
@@ -141,9 +141,16 @@ if t[:name] == active
141
141
  else
142
142
  active_s = ""
143
143
  end
144
+
145
+ if t[:icon].present?
146
+ icon = "<i class='fa #{t[:icon]}'></i> "
147
+ else
148
+ icon = ""
149
+ end
150
+
144
151
  s =<<EOS
145
152
  <li class="#{active_s}">
146
- <a href="#{t[:url]}"><i class="fa #{t[:icon]}"></i> #{t[:name]}</a>
153
+ <a href="#{t[:url]}">#{icon}#{t[:name]}</a>
147
154
  </li>
148
155
  EOS
149
156
  tab_builder << s
@@ -1,3 +1,3 @@
1
1
  module Platformx
2
- VERSION = "0.0.9.6.3"
2
+ VERSION = "0.0.9.6.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platformx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.6.3
4
+ version: 0.0.9.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - timmushen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-11 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler