ish_manager 0.1.8.509 → 0.1.8.511

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: fd13ef71c3bd12569b9401a9be38e9046c15bca41e4ff0bd9ca73335098effef
4
- data.tar.gz: 98929b528624c57bc4c7b7b1f37a5170037037124dc656adad7f207bd5b18bcb
3
+ metadata.gz: d5da617577f4d4cd7125e957adba528c860f82b0024a39f17361bde54eff7b87
4
+ data.tar.gz: e041829b23ec512a3b2fc54c25208871bab66479b5b7663e55080c6621d7ebca
5
5
  SHA512:
6
- metadata.gz: 6e3c2c79bcbeb9320091dfbe14061f752a5218694e5ba3ade53e376c4c7e85be929833a41705690364bf835f9df3de7d9263855910675bdeb19003e1d1c774c1
7
- data.tar.gz: 6b627e65b3a1deec14978d8bcd158edfa05581c7a7d9bb50d9ea8bc3afea428ba6017ca96740efa1a4c4d2d7ff6ac5a45db8c68d0c3608813a9e53031bbf7622
6
+ metadata.gz: c20a2bfb8d06792b9cda440ccfa616f8ce2f53f4ff3a8e501b1cf2c7194d496b8594843be55a5ab7e42c8a44efc7c7ef8c7b41f9eae68963cd9c5369ff01cb57
7
+ data.tar.gz: 235a0ebc5b6697470e3b0bde0c3005c0be60187c57bae96a2462f7518f217d3c81b23f61743d468f2e1062de9e4f915fdd89086e3f2efa5ddb7486055bdcea62
@@ -144,13 +144,13 @@ $(function () {
144
144
  lengthChange: true,
145
145
  lengthMenu: [[10, 25, 100, -1], [10, 25, 100, 'All']],
146
146
  pageLength: -1,
147
+ aoColumnDefs: [ {
148
+ bSortable: false,
149
+ aTargets: [ "nosort" ],
150
+ } ],
151
+ order: [ 4, 'desc' ],
147
152
  }
148
- // $('#dataTable').DataTable(_props)
149
- var dataTable = $('.data-table').DataTable(_props)
150
-
151
- $('#dataTableSearch').on( 'keyup', function () {
152
- dataTable.search( this.value ).draw();
153
- } );
153
+ $('.data-table').DataTable(_props)
154
154
  }
155
155
 
156
156
  if ('function' === typeof $('body').datepicker) {
@@ -249,6 +249,11 @@ table.dataTable {
249
249
  box-sizing: border-box;
250
250
  background: white;
251
251
 
252
+ thread {
253
+ th {
254
+ padding: 8px 10px;
255
+ }
256
+ }
252
257
  }
253
258
 
254
259
  .datetime {
@@ -39,10 +39,10 @@
39
39
  }
40
40
  }
41
41
 
42
- // refers to number of messages in a conversation
42
+ /* refers to number of messages in a conversation */
43
43
  .count {
44
- display: inline;
45
- width: 30px;
44
+ // display: inline;
45
+ // width: 30px;
46
46
  text-align: right;
47
47
  }
48
48
 
@@ -83,17 +83,20 @@
83
83
  }
84
84
  }
85
85
 
86
- .select-all.chip {
86
+ .select-all {
87
+ // border: 1px solid red;
88
+
87
89
  display: flex;
88
- border: 1px solid cyan;
90
+
91
+ padding: 8px 10px;
89
92
  }
90
93
 
91
94
  .subject {
92
95
  margin: 0 1em;
93
- font-weight: bold;
96
+ text-overflow: ellipsis;
94
97
 
95
- &:before {
96
- content: "Subj: ";
98
+ a {
99
+ font-weight: bold;
97
100
  }
98
101
  }
99
102
 
@@ -73,11 +73,11 @@
73
73
  %table.conversations.bordered.data-table
74
74
  %thead
75
75
  %tr
76
- %th
77
- .chip.select-all
78
- = check_box_tag :select_all
79
- .n-selected -
80
- %th Msgs
76
+ %th.select-all.nosort
77
+ = check_box_tag :select_all
78
+ .n-selected -
79
+ %th.nosort
80
+ -# N Msgs
81
81
  %th From emails
82
82
  %th Subject
83
83
  %th Datetime
@@ -95,6 +95,7 @@
95
95
 
96
96
  %td.subject
97
97
  = link_to conv.subject, email_conversation_path( conv )
98
+ = conv.preview
98
99
 
99
100
  %td
100
101
  .datetime
@@ -12,8 +12,6 @@
12
12
  - if new_from_email.blank?
13
13
  - new_from_email = Ish::EmailTemplate::DEFAULT_FROM_EMAIL
14
14
 
15
- - all_ccs = [] + (msg.tos||[]) + (msg.ccs||[]) + (msg.froms||[])
16
-
17
15
  .item.msg-container{ data: { msg: { id: msg.id } } }
18
16
  .gray.row
19
17
  .col-md-6
@@ -31,10 +29,14 @@
31
29
  - msg.email_attachments.each_with_index do |attachment, idx|
32
30
  - if attachment.filename
33
31
  .a= link_to attachment.filename, email_attachment_path( attachment )
34
- - else
35
- .a
36
- = link_to '[view]', email_attachment_path( attachment )
37
- "#{attachment.content_type.split(';')[0]} #{attachment.filename} #{idx}"
32
+ -# - else
33
+ -# .a
34
+ -# = link_to '[view]', email_attachment_path( attachment )
35
+ -# "#{attachment.content_type.split(';')[0]} #{attachment.filename} #{idx}"
36
+ .a
37
+ <b>N asset3d s:</b>
38
+ - msg.asset3ds.each do |asset|
39
+ .a= link_to asset.object_file_name, asset.object.url
38
40
 
39
41
 
40
42
  .position-absolute.top-0.right-0.datetime
@@ -67,8 +69,8 @@
67
69
  - new_ctx[:lead_id] = lead.id
68
70
  - new_ctx[:from_email] = new_from_email
69
71
  - new_ctx[:subject] = msg.subject
70
- - new_ctx[:body] = Ish::EmailTemplate::SIGNATURE + ActionView::Base.full_sanitizer.sanitize( msg.part_html )
71
- - new_ctx[:cc] = all_ccs.join(', ')
72
+ - new_ctx[:body] = Ish::EmailTemplate::SIGNATURE + msg.body_sanitized
73
+ - new_ctx[:cc] = msg.all_ccs.join(', ')
72
74
 
73
75
  = render 'ish_manager/email_contexts/form', ctx: new_ctx
74
76
 
@@ -12,7 +12,6 @@
12
12
  = render 'form', email_filter: @email_filter
13
13
  %hr
14
14
 
15
- -# %input#dataTableSearch
16
15
  %table.bordered.data-table
17
16
  %thead
18
17
  %tr
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.509
4
+ version: 0.1.8.511
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2023-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails