wco_models 3.1.0.140 → 3.1.0.141

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
  SHA256:
3
- metadata.gz: aa9e988a7e44625ce410a082ccf9055608a690320c5d2e5d4fe86a3d95284a5d
4
- data.tar.gz: ab13367e43002f64bac72f54c668a2dfcbcc9296359c651273c6c0c8fd645564
3
+ metadata.gz: 0ba532da884be707b7fac5365a23c346df65965efa7a6b53a16d50d73f7fe476
4
+ data.tar.gz: 50f746e36a2a6c4cb6cf1526905027d60169c394e8bb9c95f496d836e3059667
5
5
  SHA512:
6
- metadata.gz: 24ee85d5971e231eb4607794fe7d75d7f1780f310bbfc15e6e0888888edc88dcdf0b593cf4d6dfdc461e5ed845c6bd27bbd5042127fa6a1c4202b11e28d5d61f
7
- data.tar.gz: effca0d00789c5649feed0ac7e3313adab6e0f904cd167eb42916e3417c2e87e5814f0e199c2f88433c6851e86a7561d7ab95052bdb7f67f8dd54305427666f9
6
+ metadata.gz: dbc25645c7e5ee4e3749a4ea996461d0fd4a8d7a66710660b487e84819b506abece3a0545d8b7e27303b69656115a30e1ca46b6c542bf114fc969ff325ee9016
7
+ data.tar.gz: 214a60d7d891227dbcfd6442e34fb19651e09c272ebfda3d5867e388c7fda7f01d4e557dba6599571623411f7c00a603fdb4c64bb0a272cadcc7c341c8584ccf
@@ -15,6 +15,7 @@
15
15
  display: inline-block;
16
16
 
17
17
  height: 32px;
18
+ line-height: 32px;
18
19
 
19
20
  margin-right: 32px;
20
21
  margin-bottom: 0.3em;
@@ -37,8 +37,8 @@ module Wco::ApplicationHelper
37
37
  end
38
38
  def pp_money a; pp_amount a; end
39
39
  def pp_currency a; pp_amount a; end
40
- def pp_percent a
41
- "#{(a*100).round(2)}%"
40
+ def pp_percent a, config = { precision: 2}
41
+ "#{(a*100).round( config[:precision] )}%" rescue '@TODO'
42
42
  end
43
43
 
44
44
  end
@@ -29,6 +29,7 @@
29
29
  .col-sm-4
30
30
  = render '/wco/profiles/form_extra', profile: @current_profile
31
31
  = link_to 'RTEditor', wco.application_tinymce_path, target: :_blank
32
+ = render 'wco/application/debug' if !Rails.env.production?
32
33
 
33
34
  .c
34
- = render 'wco/application/debug' if !Rails.env.production?
35
+
@@ -1,5 +1,5 @@
1
1
 
2
2
  .d-flex
3
- .label Select All
3
+ .label.mini All
4
4
  = check_box_tag :select_all
5
5
  .n-selected -
@@ -13,11 +13,8 @@
13
13
  .padded
14
14
  - if galleries.length > 0
15
15
  = form_tag update_galleries_path do
16
- - @tags.each do |tag|
17
16
 
18
- .Chip
19
- = check_box_tag 'tag_ids[]', tag.id
20
- = tag
17
+ = render '/wco/tags/list_mini', tags: @tags
21
18
 
22
19
  = submit_tag 'Add Tags', data: { confirm: 'Are you sure?' }
23
20
    
@@ -0,0 +1,11 @@
1
+
2
+
3
+ -# <b>Tags (#{tags.length}):</b>
4
+ -# - cache cache_key do
5
+ .Tags.chips.mb-2
6
+ - tags.each do |tag|
7
+ .Chip{ data: { tag: { id: tag.id.to_s } } }
8
+ - if !config&.without_checkbox
9
+ = check_box_tag 'tag_ids[]', tag.id
10
+ = link_to tag.slug, wco.tag_path( tag )
11
+
@@ -40,7 +40,7 @@
40
40
  -# = render '/wco_email/contexts/form_reply_mini', lead_id: msg.lead_id, message: msg, ctx: WcoEmail::Context.new({ from_email: msg.to&.downcase, subject: msg.subject, email_template_id: ET.find_by( slug: 'blank').id })
41
41
 
42
42
  %td.tags.mini
43
- = render '/wco/tags/chips', tags: conv.tags, cache_key: conv.cache_key
43
+ = render '/wco/tags/list_mini', tags: conv.tags, cache_key: conv.cache_key, config: OpenStruct.new( without_checkbox: true )
44
44
  %td.latest-at
45
45
  = pp_date conv.latest_at
46
46
  = pp_time conv.latest_at
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.140
4
+ version: 3.1.0.141
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
@@ -591,11 +591,9 @@ files:
591
591
  - app/views/wco/sites/edit.haml
592
592
  - app/views/wco/sites/index.haml
593
593
  - app/views/wco/sites/new.haml
594
- - app/views/wco/tags/_chips.haml
595
594
  - app/views/wco/tags/_form.haml
596
595
  - app/views/wco/tags/_header.haml
597
596
  - app/views/wco/tags/_index.haml
598
- - app/views/wco/tags/_index_inline.haml
599
597
  - app/views/wco/tags/_list_mini.haml
600
598
  - app/views/wco/tags/edit.haml
601
599
  - app/views/wco/tags/index.haml
@@ -1,6 +0,0 @@
1
-
2
- - cache cache_key do
3
- .tags--chips
4
- - tags.each do |tag|
5
- .mb-1
6
- .Chip{ data: { tag: { id: tag.id.to_s } } }= tag.slug
@@ -1,7 +0,0 @@
1
-
2
-
3
- .Tags.chips.mb-2
4
- <b>Tags (#{tags.length}):</b>
5
- - tags.each_with_index do |tag, idx|
6
- .Chip
7
- = link_to tag.slug, wco.tag_path(tag)
@@ -1 +0,0 @@
1
- app/views/wco/tags/_index_inline.haml