wco_models 3.1.0.130 → 3.1.0.132

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: 30551265a3fec9fb2a88db7203378f892e0e55e0e6818e6e4c67ed9fe13ea524
4
- data.tar.gz: 814c54fec6aff158e89a2575e32a3eaadda4d74eaef3c77fd81cfac878e82f33
3
+ metadata.gz: e558921e3be7d6d456241324fb05fb95fabac40c41c2075e34368b061f67cb8a
4
+ data.tar.gz: fdce90a34e3867f242a722129d53a32179b4a75578be59441f52f8d30bd0de20
5
5
  SHA512:
6
- metadata.gz: 8c2a060369f1e52372b509d37ce637c135208edf38900318eb48bcfddab190e386c48432806a1a4d150be1b95600b299611ad379199a835c516c38843ae67397
7
- data.tar.gz: a82db8022953866e51d9d9979674384372fd332c49155c4083de9b0b595a6957f7228d16fbde63935156dd323a39af8d787e673552c71b5002c877a74176103f
6
+ metadata.gz: 4a0efc5ee5388f408dfb70a7d4cb078550aab0eb4e883ac4e36bac1c822f69a45bd52da6c380cd470d335a1ca0b5e7db62f4eb866e09dfb05195ea00cbafd685
7
+ data.tar.gz: 0cb7f469390eb1c1e44530cbf0810a6f7fb54fab12eeb47484ccd36cc241a724c961c6776f0c51d3900c9161da4e420bdee083747df100c33f9b765dae3cf664
@@ -67,8 +67,9 @@ class Wco::LeadsController < Wco::ApplicationController
67
67
  redirect_to request.referrer
68
68
  return
69
69
  end
70
- @ctxs = @lead.ctxs
71
- @convs = @lead.conversations.includes(:messages)
70
+ @ctxs = @lead.ctxs.page( params[:ctxs_page] ).per( current_profile.per_page )
71
+ @convs = @lead.conversations.page( params[:convs_page] ).per( current_profile.per_page )
72
+
72
73
  end
73
74
 
74
75
  def update
@@ -18,8 +18,6 @@
18
18
  %li Phone: #{@lead.phone}
19
19
  - if @lead.address
20
20
  %li Address: #{@lead.address}
21
- -# - if @lead.shoe_size
22
- -# %li Shoe size: #{@lead.shoe_size}
23
21
  -# - if @lead.comment
24
22
  -# %li Comment: #{raw @lead.comment}
25
23
  - if @lead.photo
@@ -39,10 +37,12 @@
39
37
  Email Contexts (#{@lead.ctxs.length})
40
38
  = link_to '[+]', '#'
41
39
  %ul
40
+ = paginate @ctxs, param_name: :ctxs_page
42
41
  - @ctxs.each do |ctx|
43
42
  %li
44
43
  = pp_date( ctx.sent_at ) || 'not sent'
45
44
  = link_to ctx.subject.presence||"No Subj?!", wco_email.context_path(ctx)
45
+ = paginate @ctxs, param_name: :ctxs_page
46
46
 
47
47
  .col-md-6.schs
48
48
  %h5
@@ -70,5 +70,7 @@
70
70
  .row
71
71
  .col-md-12.conversations
72
72
  %h5 Email Conversations (#{@convs.length})
73
+ = paginate @convs, param_name: :convs_page
73
74
  = render 'wco_email/conversations/table', convs: @convs
75
+ = paginate @convs, param_name: :convs_page
74
76
 
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.130
4
+ version: 3.1.0.132
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev