platformx 0.0.9.6.6.2 → 0.0.9.6.6.3

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: c3a1085ed5fb6a851cf49b6102e4db683f87d748
4
- data.tar.gz: 02ac9bfa6317c62f5533f9933fa9800dd173d69f
3
+ metadata.gz: 97e32dc32e82c719118a3ab16552fe53826c937d
4
+ data.tar.gz: d07fc6bdf70d64a4522568b23cd67ce1985e12a5
5
5
  SHA512:
6
- metadata.gz: e26362d868a20d0cbfa117ac48c37717fde02e53d1677743102edb35b6232bc4b6a55ba9a916ee19d809e99a74bbafcc8e61284eae0dad93cb9bf3ea0cbe2b15
7
- data.tar.gz: 6497d6d82e612af2b35d50d92eb88ad51aaee6161be10f1f62e3fc9a95b5adb0a5bcec646dbad613e7ddb7a38c290eec61aa5bac3affc6ad7c5f1dfc4e9ab739
6
+ metadata.gz: f311e97eca872284d5f40899bb44753ac36103d2806512d68b78c9c9954c5a26e06a54af23485e2571c43bac32cb6c6c41df403f3db3354d0f04a729e3c7363d
7
+ data.tar.gz: 3fd9dd117285f6acf83c47b94b8976679f88b2d6be68bcab5a463c0971b7c3655974bde331512fa589ca40d5d17a8ff2b94ea341a8fd01da74974d19746c87d0
@@ -173,7 +173,7 @@ end
173
173
  # @param value [String] number widget value
174
174
  # @param icon [String] number widget icon
175
175
  # @return [String] rendered number widget
176
- def x_number_widget(label: "", value: "", icon: "", info_modal: "")
176
+ def x_number_widget(label: "", value: "", icon: "", info_modal: "", inversed: false)
177
177
 
178
178
  icon_html = ""
179
179
  unless icon == ""
@@ -185,12 +185,22 @@ unless info_modal == ""
185
185
  info_modal_html = "<a href='#{info_modal}' class='' data-toggle='modal'><i class='fa fa-info-circle'></i></a>"
186
186
  end
187
187
 
188
+ if inversed == false
188
189
  widget =<<EOS
189
190
  <div class="x_number_widget_wrapper">
190
191
  <div class="x_number_widget_value">#{value}</div>
191
192
  <div class="x_number_widget_label">#{icon_html}#{label} #{info_modal_html}</div>
192
193
  </div>
193
194
  EOS
195
+ else
196
+ widget =<<EOS
197
+ <div class="x_number_widget_wrapper x_number_widget_inversed">
198
+ <div class="x_number_widget_label">#{icon_html}#{label} #{info_modal_html}</div>
199
+ <div class="x_number_widget_value">#{value}</div>
200
+ </div>
201
+ EOS
202
+
203
+ end
194
204
 
195
205
  return widget
196
206
 
@@ -1,3 +1,3 @@
1
1
  module Platformx
2
- VERSION = "0.0.9.6.6.2"
2
+ VERSION = "0.0.9.6.6.3"
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.6.2
4
+ version: 0.0.9.6.6.3
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-30 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler