wco_models 3.1.0.133 → 3.1.0.134

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: '08e95dc229ad1424fb5712f08008e7c36011c34d1185ea68ab62d427d2165459'
4
- data.tar.gz: a315d6d0595e141555526012f89a0e9548c0a61f5107441b29ba0f8161414b28
3
+ metadata.gz: cff4e9543401c7d5f8727374e53f03b74558a872510fc1fad25571109d1b9d3f
4
+ data.tar.gz: ceae4b3cfdcafbacd7eef23acb410d544ba02c1c1d5083beea72a630d10c0773
5
5
  SHA512:
6
- metadata.gz: 0fc514ec8dffd6b0be83fd5362f512828bfe0b0bd7f199f51c1f6221a5114049c45b12334e59d4277c4f0e21ea73d0d48d7e58b33259aa2caca4218daf04ba62
7
- data.tar.gz: f8f51784b26e0230d815dd68de3230ed5329eb94754c9c6a23b084e6b1c3dcdd973d4909781b5cf9ed65b7f2180a452e9a9828a365a9bce378d4ef1fa055266a
6
+ metadata.gz: 03d11aa19ec11beea9883d7b58547a165c1b08cd6f5b74f199413bf3a5961aa706db118a5c806a01c2845fa3e258a74fc4342f17604fa1cac531374d11b94255
7
+ data.tar.gz: a75b5a7452753b0791dc2452d9bd9f09683d3fb1cddd9ee248b0d04a0d5fdff42efecb2cae1ea1bbacc7476a6ab88bdff5160e91665815a8296c7054feb3ac8d
@@ -123,6 +123,30 @@ textarea.monospace {
123
123
  }
124
124
 
125
125
  /* H */
126
+
127
+
128
+ .h-20px {
129
+ min-height: 20px;
130
+ }
131
+ .h-30px {
132
+ min-height: 30px;
133
+ }
134
+ .h-50px {
135
+ min-height: 50px;
136
+ }
137
+
138
+ .h-300px {
139
+ min-height: 300px;
140
+ }
141
+
142
+ .h-400px {
143
+ min-height: 400px;
144
+ }
145
+
146
+ .h-500px {
147
+ min-height: 500px;
148
+ }
149
+
126
150
  .header {
127
151
  display: flex;
128
152
 
@@ -135,10 +159,11 @@ textarea.monospace {
135
159
  }
136
160
  }
137
161
 
138
- .h-500px {
139
- min-height: 500px;
162
+ .hide, .hidden {
163
+ display: none;
140
164
  }
141
165
 
166
+
142
167
  /* M */
143
168
 
144
169
  .maxwidth {
@@ -159,6 +184,11 @@ textarea.monospace {
159
184
  width: calc( 100% - 1em );
160
185
  }
161
186
 
187
+ /* S */
188
+ .spacer-small {
189
+ height: 20px;
190
+ }
191
+
162
192
  /* T */
163
193
 
164
194
  .title {
@@ -167,6 +197,21 @@ textarea.monospace {
167
197
 
168
198
  /* W */
169
199
 
200
+ .w-20px {
201
+ width: 20px;
202
+ }
203
+ .w-30px {
204
+ width: 30px;
205
+ }
206
+ .w-50px {
207
+ width: 50px;
208
+ }
209
+ .w-150px {
210
+ width: 150px;
211
+ }
212
+ .w-200px {
213
+ width: 200px;
214
+ }
170
215
  .w-300px {
171
216
  width: 300px;
172
217
  }
@@ -29,9 +29,10 @@ module Wco::ApplicationHelper
29
29
  return date.in_time_zone( Rails.application.config.time_zone ).strftime('%l:%M%P %Z')
30
30
  end
31
31
 
32
- def pp_amount a
32
+ def pp_amount a, config = { precision: 2 }
33
33
  return '-' if !a
34
- "$ #{'%.2f' % a}"
34
+ return number_to_currency a, precision: config[:precision]
35
+ # "$#{'%.2f' % a}"
35
36
  end
36
37
  def pp_money a; pp_amount a; end
37
38
  def pp_currency a; pp_amount a; end
@@ -10,9 +10,12 @@
10
10
  .flex-row
11
11
  %ul
12
12
  %li= link_to 'ROOT', '/'
13
- %li= link_to '/email', '/email'
14
- %li= link_to '/hosting', '/hosting'
15
- %li= link_to '/trading', '/trading'
13
+ - if defined? wco_email
14
+ %li= link_to '/email', '/email'
15
+ - if defined? wco_hosting
16
+ %li= link_to '/hosting', '/hosting'
17
+ - if defined? iro
18
+ %li= link_to '/trading', '/trading'
16
19
 
17
20
  %ul
18
21
  %li= render '/wco/invoices/header'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.133
4
+ version: 3.1.0.134
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-08 00:00:00.000000000 Z
11
+ date: 2024-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3