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 +4 -4
- data/app/controllers/wco/leads_controller.rb +3 -2
- data/app/views/wco/leads/show.haml +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e558921e3be7d6d456241324fb05fb95fabac40c41c2075e34368b061f67cb8a
|
4
|
+
data.tar.gz: fdce90a34e3867f242a722129d53a32179b4a75578be59441f52f8d30bd0de20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
|