wco_models 3.1.0.128 → 3.1.0.130
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/light_theme.css +8 -0
- data/app/assets/stylesheets/wco/application.scss +2 -0
- data/app/assets/stylesheets/wco/chip.scss +10 -17
- data/app/assets/stylesheets/wco/conversations.scss +5 -0
- data/app/assets/stylesheets/wco/leads.scss +6 -0
- data/app/assets/stylesheets/wco/utils.scss +1 -1
- data/app/controllers/wco/tags_controller.rb +2 -0
- data/app/views/wco/leads/show.haml +7 -7
- data/app/views/wco/reports/_list.haml +19 -0
- data/app/views/wco/reports/index.haml +1 -16
- data/app/views/wco/tags/_index_inline.haml +5 -3
- data/app/views/wco/tags/_list_mini.haml +1 -0
- data/app/views/wco/tags/show.haml +11 -5
- data/app/views/wco_email/conversations/_table.haml +33 -32
- metadata +7 -3
- /data/app/assets/stylesheets/{dark_theme.scss → dark_theme.css} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30551265a3fec9fb2a88db7203378f892e0e55e0e6818e6e4c67ed9fe13ea524
|
4
|
+
data.tar.gz: 814c54fec6aff158e89a2575e32a3eaadda4d74eaef3c77fd81cfac878e82f33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c2a060369f1e52372b509d37ce637c135208edf38900318eb48bcfddab190e386c48432806a1a4d150be1b95600b299611ad379199a835c516c38843ae67397
|
7
|
+
data.tar.gz: a82db8022953866e51d9d9979674384372fd332c49155c4083de9b0b595a6957f7228d16fbde63935156dd323a39af8d787e673552c71b5002c877a74176103f
|
@@ -6,6 +6,7 @@
|
|
6
6
|
* Skip for now b/c I need to move fonts, too:
|
7
7
|
* require ../vendor/summernote-0.8.18
|
8
8
|
*
|
9
|
+
*= require ../light_theme
|
9
10
|
*= require_tree .
|
10
11
|
*= require ../production_theme
|
11
12
|
*= require_self
|
@@ -13,6 +14,7 @@
|
|
13
14
|
|
14
15
|
$enable-important-utilities: false;
|
15
16
|
|
17
|
+
|
16
18
|
/* A */
|
17
19
|
.application--main-header.development {
|
18
20
|
background: url('//wasyaco.com/wp-content/uploads/2024/02/weather-bg-development.png'),
|
@@ -1,33 +1,26 @@
|
|
1
1
|
|
2
|
-
html {
|
3
|
-
// --wco-color-1: red;
|
4
|
-
--wco-color-2: #ddd;
|
5
|
-
}
|
6
2
|
|
7
|
-
.chip,
|
8
|
-
.Chip {
|
9
|
-
display: inline;
|
10
3
|
|
11
|
-
border: 1px solid var(--wco-color-1);
|
12
|
-
border-radius: 0.5em;
|
13
|
-
padding: 0.1em .3em;
|
14
|
-
margin-bottom: 0.1em;
|
15
|
-
background: var(--wco-color-2);
|
16
4
|
|
17
|
-
}
|
18
5
|
.chip,
|
19
6
|
.Chip {
|
20
|
-
|
7
|
+
background: var(--wco-color-2);
|
21
8
|
border-radius: 1em 0 0 1em;
|
22
9
|
|
23
|
-
|
10
|
+
color: var(--wco-color-2contrast);
|
11
|
+
a {
|
12
|
+
color: var(--wco-color-2contrast);
|
13
|
+
}
|
24
14
|
|
25
|
-
|
15
|
+
display: inline;
|
26
16
|
|
27
17
|
height: 32px;
|
28
18
|
|
29
|
-
|
19
|
+
margin-right: 32px;
|
20
|
+
margin-bottom: 0.1em;
|
30
21
|
|
22
|
+
padding: 0.1em .3em;
|
23
|
+
padding: 0.2em 0.2em 0.2em 0.6em;
|
31
24
|
position: relative;
|
32
25
|
|
33
26
|
&::before {
|
@@ -46,16 +46,16 @@
|
|
46
46
|
|
47
47
|
.col-md-6.schs
|
48
48
|
%h5
|
49
|
-
|
50
|
-
|
51
|
-
\[+]
|
49
|
+
Email Actions (#{@lead.schs.length})
|
50
|
+
= link_to '[+]', wco_email.new_email_action_path(lead_id: @lead.id)
|
52
51
|
%ul
|
53
52
|
- @lead.schs.each do |sch|
|
54
53
|
%li
|
55
|
-
= link_to sch
|
56
|
-
= sch.
|
57
|
-
|
58
|
-
|
54
|
+
= link_to sch, wco_email.edit_email_action_path(sch)
|
55
|
+
= sch.status
|
56
|
+
%br
|
57
|
+
(#{link_to sch.email_action_template, wco_email.edit_email_action_template_path(sch.email_action_template)})
|
58
|
+
Perform at: #{pp_datetime sch.perform_at}
|
59
59
|
|
60
60
|
%hr
|
61
61
|
%h5
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
- config ||= {}
|
3
|
+
|
4
|
+
.reports--list
|
5
|
+
%ul
|
6
|
+
- reports.each do |ttt|
|
7
|
+
%li.Card
|
8
|
+
.flex-row
|
9
|
+
= button_to '[x]', report_path(ttt), method: :delete, data: { confirm: 'Are you sure?' }
|
10
|
+
= link_to '[~]', edit_report_path(ttt)
|
11
|
+
.a
|
12
|
+
= link_to ttt.title, report_path(ttt)
|
13
|
+
%br
|
14
|
+
`#{ttt.slug}`
|
15
|
+
.gray.mini= ttt.id
|
16
|
+
- if !config[:skip_tags]
|
17
|
+
.flex-row
|
18
|
+
= render '/wco/tags/index_inline', tags: ttt.tags
|
19
|
+
|
@@ -3,19 +3,4 @@
|
|
3
3
|
.header
|
4
4
|
%h5.title
|
5
5
|
= render 'header'
|
6
|
-
|
7
|
-
%ul
|
8
|
-
- @reports.each do |ttt|
|
9
|
-
%li.Card
|
10
|
-
.flex-row
|
11
|
-
= button_to '[x]', report_path(ttt), method: :delete, data: { confirm: 'Are you sure?' }
|
12
|
-
= link_to '[~]', edit_report_path(ttt)
|
13
|
-
.a
|
14
|
-
= link_to ttt.title, report_path(ttt)
|
15
|
-
%br
|
16
|
-
`#{ttt.slug}`
|
17
|
-
.gray.mini= ttt.id
|
18
|
-
.flex-row
|
19
|
-
|
20
|
-
= render '/wco/tags/index_inline', tags: ttt.tags
|
21
|
-
|
6
|
+
= render 'wco/reports/list', reports: @reports
|
@@ -1,8 +1,10 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
.
|
3
|
+
.Tags.mb-2
|
4
4
|
<b>Tags (#{tags.length}):</b>
|
5
5
|
- tags.each_with_index do |tag, idx|
|
6
|
-
= link_to tag.slug, tag_path(tag)
|
7
|
-
- if idx+1
|
6
|
+
= link_to tag.slug, wco.tag_path(tag)
|
7
|
+
- if idx+1 == tags.length
|
8
|
+
\.
|
9
|
+
- else
|
8
10
|
\,
|
@@ -0,0 +1 @@
|
|
1
|
+
app/views/wco/tags/_index_inline.haml
|
@@ -5,11 +5,17 @@
|
|
5
5
|
|
6
6
|
%ul
|
7
7
|
%li.d-flex
|
8
|
-
<b>
|
8
|
+
<b>Conversations (#{@tag.conversations.length}): </b>
|
9
|
+
- if @tag.conversations.present?
|
10
|
+
.Conversations
|
11
|
+
= render '/wco_email/conversations/table', convs: @tag.conversations
|
12
|
+
%li.d-flex
|
13
|
+
<b>Headlines (#{@tag.headlines.length}): </b>
|
9
14
|
= render '/wco/headlines/index', headlines: @tag.headlines
|
10
|
-
%li
|
11
|
-
<b>
|
12
|
-
|
13
|
-
|
15
|
+
%li.d-flex
|
16
|
+
<b>Reports (#{@reports.length}): </b>
|
17
|
+
= render 'wco/reports/list', reports: @reports, config: { skip_tags: true }
|
18
|
+
%li.d-flex
|
19
|
+
<b>Message Stubs (#{@tag.message_stubs.length}): </b>
|
14
20
|
= render '/wco_email/message_stubs/index', stubs: @tag.message_stubs
|
15
21
|
|
@@ -10,38 +10,39 @@
|
|
10
10
|
%th.subject subject, preview
|
11
11
|
%th.tags Tags
|
12
12
|
%th.latest-at latest_at
|
13
|
-
-
|
14
|
-
|
15
|
-
%
|
16
|
-
.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
13
|
+
%tbody.conversations-list
|
14
|
+
- convs.each_with_index do |conv, idx|
|
15
|
+
%tr
|
16
|
+
%td.select-all
|
17
|
+
.gray= idx+1
|
18
|
+
= check_box_tag 'conversation_ids[]', conv.id.to_s, nil, { class: 'i-sel' }
|
19
|
+
%td.leads.mini
|
20
|
+
-# - conv.from_emails.each do |from|
|
21
|
+
-# = link_to from, wco.lead_path( from )
|
22
|
+
-# %hr
|
23
|
+
- conv.leads.each do |lead|
|
24
|
+
= link_to lead.email, wco.lead_path( lead )
|
25
|
+
%td.subject
|
26
|
+
- if conv.unread?
|
27
|
+
<b>#{link_to conv.subject, wco_email.conversation_path(conv)}</b>
|
28
|
+
- else
|
29
|
+
= link_to conv.subject, wco_email.conversation_path(conv)
|
30
|
+
<b>#{conv.messages.unread.length}</b> (#{conv.messages.length})
|
30
31
|
|
31
|
-
|
32
|
+
.gray= conv.preview
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
34
|
+
-# - conv.messages.unread.each do |msg|
|
35
|
+
-# .border-bottom
|
36
|
+
-# .gray= msg.preview_str
|
37
|
+
-# = 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 })
|
38
|
+
-# - if conv.messages.unread.blank?
|
39
|
+
-# - msg = conv.messages.last
|
40
|
+
-# .border-bottom
|
41
|
+
-# .gray= msg.preview_str
|
42
|
+
-# = 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 })
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
%td.tags.mini
|
45
|
+
= render '/wco/tags/chips', tags: conv.tags, cache_key: conv.cache_key
|
46
|
+
%td.latest-at
|
47
|
+
= pp_date conv.latest_at
|
48
|
+
= pp_time conv.latest_at
|
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.
|
4
|
+
version: 3.1.0.130
|
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-
|
11
|
+
date: 2024-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -389,7 +389,8 @@ files:
|
|
389
389
|
- app/assets/javascripts/wco/invoices.js
|
390
390
|
- app/assets/javascripts/wco/office_action_templates.js
|
391
391
|
- app/assets/javascripts/wco/shared.js
|
392
|
-
- app/assets/stylesheets/dark_theme.
|
392
|
+
- app/assets/stylesheets/dark_theme.css
|
393
|
+
- app/assets/stylesheets/light_theme.css
|
393
394
|
- app/assets/stylesheets/production_theme.scss
|
394
395
|
- app/assets/stylesheets/vendor/bootstrap-4.6.2.min.css
|
395
396
|
- app/assets/stylesheets/vendor/jquery.dataTables-1.10.16.css
|
@@ -403,6 +404,7 @@ files:
|
|
403
404
|
- app/assets/stylesheets/wco/chip.scss
|
404
405
|
- app/assets/stylesheets/wco/conversations.scss
|
405
406
|
- app/assets/stylesheets/wco/galleries.scss
|
407
|
+
- app/assets/stylesheets/wco/leads.scss
|
406
408
|
- app/assets/stylesheets/wco/pagination.scss
|
407
409
|
- app/assets/stylesheets/wco/photos.scss
|
408
410
|
- app/assets/stylesheets/wco/utils.scss
|
@@ -573,6 +575,7 @@ files:
|
|
573
575
|
- app/views/wco/publishers/new.haml
|
574
576
|
- app/views/wco/reports/_form.haml
|
575
577
|
- app/views/wco/reports/_header.haml
|
578
|
+
- app/views/wco/reports/_list.haml
|
576
579
|
- app/views/wco/reports/edit.haml
|
577
580
|
- app/views/wco/reports/index.haml
|
578
581
|
- app/views/wco/reports/index_table.haml
|
@@ -588,6 +591,7 @@ files:
|
|
588
591
|
- app/views/wco/tags/_header.haml
|
589
592
|
- app/views/wco/tags/_index.haml
|
590
593
|
- app/views/wco/tags/_index_inline.haml
|
594
|
+
- app/views/wco/tags/_list_mini.haml
|
591
595
|
- app/views/wco/tags/edit.haml
|
592
596
|
- app/views/wco/tags/index.haml
|
593
597
|
- app/views/wco/tags/new.haml
|
File without changes
|