wco_email 0.1.1.35 → 0.1.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bec07a4e4ca2d021905fd82003f9447d7f502ca047da8421d259ef927354c64e
4
- data.tar.gz: 1c420fefd28598ca53af3806ae1d4bb8975e2f5a9ab472eeffb8ba692896cc7a
3
+ metadata.gz: 719919fe362f784681544b891315c6cca4ed0c4207226e68748eb0f1447ab838
4
+ data.tar.gz: 24896e63a899a8128076fa8cdbe51536426b066b5baa51a5bf05048c13e0addb
5
5
  SHA512:
6
- metadata.gz: 9b88fd7946cec4223d98d83b70e5a3158ecbd28382a2dddc0658f48e60b9cb548065d279944f8d6b7a04568c66edf78c1cce679244370072dddc0d187d77878a
7
- data.tar.gz: 6433e52a9e9d25ff43f1e46201ec2b10752bc2c0b5a9cf2fd24d7a6b02a75c1fd2ba469dc54843b2d7aec851257113b1c832d95faefa8599c34d1ffc5d4d41a7
6
+ metadata.gz: b5876508d47681bbf6bf7e0354e7d67dbd7f7395ff491233529525190214eb8e2c26e890235f4339159df64719019423c9a387792dcccfd42d6702582fb9d5fc
7
+ data.tar.gz: a1da9a919ec77d851a1dd0eefdec045422615def8350fca526ca8c7882645dd739f3625361359284cdda2913689328769ec2fa8919d7d989f2a4bd2f92151535
@@ -1,5 +1,11 @@
1
1
 
2
- EF = WcoEmail::EmailFilter
2
+ EC = WcoEmail::Conversation
3
+ EF = WcoEmail::EmailFilter
4
+ EM = WcoEmail::Message
5
+ ET = WcoEmail::EmailTemplate
6
+ MS = WcoEmail::MessageStub
7
+ EMS = MS
8
+ Sch = WcoEmail::EmailAction
3
9
 
4
10
  class WcoEmail::ApplicationController < Wco::ApplicationController
5
11
  # before_action :set_lists
@@ -1,6 +1,4 @@
1
1
 
2
- Sch = WcoEmail::EmailAction
3
-
4
2
  class WcoEmail::EmailActionsController < WcoEmail::ApplicationController
5
3
 
6
4
  before_action :set_lists
@@ -50,6 +50,11 @@ class WcoEmail::EmailFiltersController < WcoEmail::ApplicationController
50
50
  def update
51
51
  @email_filter = WcoEmail::EmailFilter.find params[:id]
52
52
  authorize! :update, @email_filter
53
+
54
+ if params[:email_filter][:tag].blank?
55
+ params[:email_filter].delete :tag
56
+ end
57
+
53
58
  flag = @email_filter.update_attributes( params[:email_filter].permit! )
54
59
  if flag
55
60
  flash[:notice] = 'Success'
@@ -5,7 +5,7 @@
5
5
  Wco Email & CRM
6
6
  .flex-row
7
7
  %ul
8
- %li= link_to 'Email Messages', conversations_path
8
+ %li= link_to 'Inbox', conversations_in_path('inbox')
9
9
  %li
10
10
  Stubs
11
11
  (#{WcoEmail::MessageStub.pending.length})
@@ -3,9 +3,9 @@
3
3
  %ul.tags-list
4
4
  - @tags.each do |tag|
5
5
  %li
6
- = link_to tag.slug, email_conversations_in_path( tag.slug )
6
+ = link_to tag.slug, conversations_in_path( tag.slug )
7
7
  -# (#{tag.conversations.unread.length}, #{tag.conversations.length})
8
8
  (#{tag.conversations.unread.length})
9
9
  (#{tag.conversations.length})
10
- = link_to "not", email_conversations_not_in_path( tag.slug )
10
+ = link_to "not", conversations_not_in_path( tag.slug )
11
11
 
@@ -36,9 +36,9 @@
36
36
  = link_to lead.email, wco.lead_path( lead )
37
37
  %td.subject
38
38
  - if conv.unread?
39
- <b>#{link_to conv.subject, email_conversation_path(conv)}</b>
39
+ <b>#{link_to conv.subject, conversation_path(conv)}</b>
40
40
  - else
41
- = link_to conv.subject, email_conversation_path(conv)
41
+ = link_to conv.subject, conversation_path(conv)
42
42
  <b>(#{conv.messages.length})</b>
43
43
  %span.gray= conv.preview
44
44
  %td.tags.mini
@@ -12,7 +12,7 @@
12
12
  - if @other_convs.present?
13
13
  - @other_convs.each do |conv|
14
14
  .d-flex
15
- = button_to "Merge", merge_email_conversations_path( @conversation, conv ), data: { confirm: 'Are you sure?' }
15
+ = button_to "Merge", merge_conversations_path( @conversation, conv ), data: { confirm: 'Are you sure?' }
16
16
  = conv.subject
17
17
  (#{conv.messages.length})
18
18
  %span.gray.mini= conv.id
@@ -6,4 +6,4 @@
6
6
  %h5 Convs (#{@email_filter.conversations.length})
7
7
  %ul
8
8
  - @email_filter.conversations.each do |conv|
9
- %li= link_to conv, email_conversation_path(conv)
9
+ %li= link_to conv, conversation_path(conv)
@@ -3,7 +3,7 @@
3
3
  %h5
4
4
  Message
5
5
  <b>Subject:</b>
6
- = link_to @message.conversation.subject, email_conversation_path(@message.conversation)
6
+ = link_to @message.conversation.subject, conversation_path(@message.conversation)
7
7
  (#{@message.conversation.messages.length})
8
8
 
9
9
  = render 'meta', message: @message
data/config/routes.rb CHANGED
@@ -1,16 +1,15 @@
1
1
 
2
2
  WcoEmail::Engine.routes.draw do
3
3
  # root to: '/wco_email/email_conversations#index'
4
- root to: redirect('/email/conversations')
4
+ root to: redirect('/email/conversations/in/inbox')
5
5
 
6
6
  get 'analytics', to: 'application#analytics'
7
7
  get 'tinymce', to: 'application#tinymce', as: :application_tinymce
8
8
 
9
- # get 'conversations', to: '/wco_email/conversations#index', as: :email_conversations
10
- get 'conversations/in/:tagname', to: '/wco_email/conversations#index', as: :email_conversations_in
11
- get 'conversations/not-in/:tagname_not', to: '/wco_email/conversations#index', as: :email_conversations_not_in
12
- get 'conversations/:id', to: '/wco_email/conversations#show', as: :email_conversation
13
- post 'conversations/:id1/merge/:id2', to: '/wco_email/conversations#merge', as: :merge_email_conversations
9
+ get 'conversations/in/:tagname', to: '/wco_email/conversations#index', as: :conversations_in
10
+ get 'conversations/not-in/:tagname_not', to: '/wco_email/conversations#index', as: :conversations_not_in
11
+ get 'conversations/:id', to: '/wco_email/conversations#show', as: :conversation
12
+ post 'conversations/:id1/merge/:id2', to: '/wco_email/conversations#merge', as: :merge_conversations
14
13
  post 'conversations/addtag', to: 'conversations#addtag'
15
14
  post 'conversations/addtag/:slug', to: 'conversations#addtag'
16
15
  post 'conversations/rmtag', to: 'conversations#rmtag'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.35
4
+ version: 0.1.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
@@ -451,7 +451,6 @@ files:
451
451
  - app/views/wco_email/unsubscribes/_table.haml
452
452
  - config/initializers/assets.rb
453
453
  - config/routes.rb
454
- - config/trash/credentials.yml.enc
455
454
  - lib/tasks/bjjcollective/sitemap.rb
456
455
  - lib/tasks/db_tasks.rake
457
456
  - lib/tasks/direct_mail_tasks.rake
@@ -1 +0,0 @@
1
- WHqoOCnqWBlZw7b6AEldEVt6/kukDrxD2tep9qvR7l7+GMGiBSSIXpcUu8jR5pO2raAtgkyCFgTe5gcy/AHWXSeHWZXV+4Af7Yuu1SZd0TohrbDMdTwoTa3dqVTxi0rJ2XEcHX6balRTA2xDdYluOGKE+ZRjw9ISXdBcmPVyass6A3Alq/Drpn2qH+xGoEORXl6aup3dPEQXNeZke94qmOy4b2Bu4xbK+D6ef1KYfiFyOD6ZCC6LhOp3hYD5id64e6ztIxxjYDhfodoez5ShpdG94QQxwf3IYvRw360MpCYoADhfNqWjDle+U7vSirVjS2cvI6kM5J5a8Rqiyl/hlGZAhlRrR2kCPO8Y7uUVltioGjAful0G8TuCmBqVvkyCDmCQOIy8PR5d4lFmCC836Wq5+xCrhx94HRBO--R2UXrOlTjc009hgy--wRmj1n2ydKGptUJ3j+E+0g==