wco_models 3.1.0.194 → 3.1.0.196
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wco/gallery.rb +1 -0
- data/app/models/wco/headline.rb +2 -0
- data/app/models/wco/lead.rb +2 -0
- data/app/models/wco/leadset.rb +2 -0
- data/app/models/wco/report.rb +2 -0
- data/app/models/wco/video.rb +2 -0
- data/app/models/wco_email/conversation.rb +2 -0
- data/app/models/wco_email/message_stub.rb +2 -0
- data/app/views/wco/leadsets/_index_list.haml +5 -0
- data/app/views/wco/tags/_index_table.haml +3 -1
- data/app/views/wco/tags/show.haml +9 -6
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6edaaf0b56607ebe8b92217e54dd6cb2b89b0a3e70c94c8c1b7cab85f6c46850
|
4
|
+
data.tar.gz: 7a1d6d52dfa41bef70e127c66e0ebab10b61dca8bb147bbe2ececc007f16ff14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e559030c342a708f47f83235222d929132d8869fcfd852da2a55b3b22c1084b262c07db916e95bea481c6947de3f42ee4a3d47683cee243f3996b372528757a0
|
7
|
+
data.tar.gz: 5decaf5fce553e94f19bbeac146e6b3cfef6a7d77472636bdbd0ddce74b1c1aa191ee5fbe91b2bf076736c70453b96e7cc3cb4bb2875c8fff61de1e0e38a4659
|
data/app/models/wco/gallery.rb
CHANGED
data/app/models/wco/headline.rb
CHANGED
data/app/models/wco/lead.rb
CHANGED
data/app/models/wco/leadset.rb
CHANGED
@@ -5,6 +5,8 @@ class Wco::Leadset
|
|
5
5
|
include Mongoid::Paranoia
|
6
6
|
store_in collection: 'wco_leadsets'
|
7
7
|
|
8
|
+
PAGE_PARAM_NAME = 'leadsets_page'
|
9
|
+
|
8
10
|
field :company_url
|
9
11
|
validates :company_url, presence: true, uniqueness: true
|
10
12
|
index({ company_url: 1 }, { unique: true, name: 'company_url' })
|
data/app/models/wco/report.rb
CHANGED
data/app/models/wco/video.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
%table.bordered.tags--index.
|
2
|
+
%table.bordered.tags--index.maxwidth
|
3
3
|
%thead
|
4
4
|
%tr
|
5
5
|
%td
|
@@ -12,6 +12,7 @@
|
|
12
12
|
%td N Reports
|
13
13
|
%td N Videos
|
14
14
|
|
15
|
+
%td N leadsets
|
15
16
|
%td N Leads
|
16
17
|
|
17
18
|
%td N Logs
|
@@ -27,5 +28,6 @@
|
|
27
28
|
%td= tag.galleries.length
|
28
29
|
%td= tag.reports.length
|
29
30
|
%td= tag.videos.length
|
31
|
+
%td= tag.leadsets.length
|
30
32
|
%td= tag.leads.length
|
31
33
|
%td= tag.logs.length
|
@@ -9,22 +9,25 @@
|
|
9
9
|
<b>Conversations (#{@tag.conversations.length}): </b>
|
10
10
|
- if @tag.conversations.present?
|
11
11
|
.Conversations
|
12
|
-
= render '/wco_email/conversations/table', convs: @tag.conversations
|
12
|
+
= render '/wco_email/conversations/table', convs: @tag.conversations.page( params[::WcoEmail::Conversation::PAGE_PARAM_NAME] )
|
13
13
|
%li.d-flex
|
14
14
|
<b>Message Stubs (#{@tag.message_stubs.length}): </b>
|
15
|
-
= render '/wco_email/message_stubs/index', stubs: @tag.message_stubs
|
15
|
+
= render '/wco_email/message_stubs/index', stubs: @tag.message_stubs.page( params[::WcoEmail::MessageStub::PAGE_PARAM_NAME] )
|
16
16
|
|
17
17
|
%li.d-flex
|
18
18
|
<b>Galleries (#{@galleries.length}): </b>
|
19
|
-
= render '/wco/galleries/index', galleries: @galleries, config: { skip_tags: true }
|
19
|
+
= render '/wco/galleries/index', galleries: @galleries.page( params[::Wco::Gallery::PAGE_PARAM_NAME] ), config: { skip_tags: true }
|
20
20
|
%li.d-flex
|
21
21
|
<b>Headlines (#{@tag.headlines.length}): </b>
|
22
|
-
= render '/wco/headlines/index', headlines: @tag.headlines
|
22
|
+
= render '/wco/headlines/index', headlines: @tag.headlines.page( params[::Wco::Headline::PAGE_PARAM_NAME] )
|
23
23
|
|
24
|
+
%li.d-flex
|
25
|
+
<b>Leadsets (#{@tag.leadsets.length}): </b>
|
26
|
+
= render '/wco/leadsets/index_list', leadsets: @tag.leadsets.page( params[::Wco::Leadset::PAGE_PARAM_NAME] )
|
24
27
|
%li.d-flex
|
25
28
|
<b>Leads (#{@tag.leads.length}): </b>
|
26
|
-
= render '/wco/leads/index', leads: @tag.leads
|
29
|
+
= render '/wco/leads/index', leads: @tag.leads.page( params[::Wco::Lead::PAGE_PARAM_NAME] )
|
27
30
|
|
28
31
|
%li.d-flex
|
29
32
|
<b>Reports (#{@reports.length}): </b>
|
30
|
-
= render '/wco/reports/index', reports: @reports, config: { skip_tags: true }
|
33
|
+
= render '/wco/reports/index', reports: @reports.page( params[::Wco::Report::PAGE_PARAM_NAME] ), config: { skip_tags: true }
|
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.
|
4
|
+
version: 3.1.0.196
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
@@ -578,6 +578,7 @@ files:
|
|
578
578
|
- app/views/wco/leadsets/_form.haml
|
579
579
|
- app/views/wco/leadsets/_header.haml
|
580
580
|
- app/views/wco/leadsets/_index_chips.haml
|
581
|
+
- app/views/wco/leadsets/_index_list.haml
|
581
582
|
- app/views/wco/leadsets/edit.haml
|
582
583
|
- app/views/wco/leadsets/index.haml
|
583
584
|
- app/views/wco/leadsets/index_dataTables.haml
|