ish_manager 0.1.8.372 → 0.1.8.373

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: d4d5e787e74562c8e5aced449985e808514117d71edef066f66564cbf6b20e63
4
- data.tar.gz: a4feab7fd1f3a1142252c00533d5a2cd4c1072212b3657d9595f218de72a6c93
3
+ metadata.gz: 3520e812ccca2471e7fe71ead1f055303fec0da31efc52ae9f04aff94d80417b
4
+ data.tar.gz: a104b9335d5eb91a3bf2dbdd6c436bd89d98d91941ca74c6f429c55e362918b0
5
5
  SHA512:
6
- metadata.gz: eeaecbf344bd5501e3a1a07d1bcdcf20d3ffdda78eb1a20a2a1febd623dd588a6aead655c679b3fc5ee18e272bfcc27ed47ba31f1b03afa62ecfbb1eb678e16f
7
- data.tar.gz: 376ec631efc2707d860a09279803d601ca7401202ce18f903a866c76520eb4aa3ebc090af2c5db77435432fb18b2d097222e1b8bc2d89263533ce545708808b1
6
+ metadata.gz: 10f48c22702c4b201fc3e9e969a5c12386e5483d0bcf926fa08edd948f29affd3f27e6bd6934ee17790bd2d41fcc167d7c809115fa2d170da5ece07c0822f3f0
7
+ data.tar.gz: 00716b9b403598d743672c793b2004e16681ab6749cea0bd2c866f08243af596181139b4850c0b7f44f85614bc18e35f111041f4d58e75beb7e959a956e30c61
@@ -138,6 +138,12 @@
138
138
  }
139
139
  }
140
140
 
141
+ .second-header {
142
+ a {
143
+ margin: 0 1em;
144
+ }
145
+ }
146
+
141
147
  .select-all.chip {
142
148
  display: flex;
143
149
  border: 1px solid cyan;
@@ -7,7 +7,12 @@ class ::IshManager::EmailConversationsController < IshManager::ApplicationContro
7
7
 
8
8
  def index
9
9
  authorize! :email_conversations_index, IshManager::Ability
10
- @email_conversations = ::Office::EmailConversation.in_inbox
10
+
11
+ if params[:slug]
12
+ @email_conversations = ::Office::EmailConversation.in_emailtag( params[:slug] )
13
+ else
14
+ @email_conversations = ::Office::EmailConversation.all
15
+ end
11
16
  end
12
17
 
13
18
  def show
@@ -1,9 +1,16 @@
1
1
 
2
2
  .email-conversations-index
3
3
 
4
- .header
4
+ .second-header
5
5
  %i.material-icons mail
6
- Inbox (#{Office::EmailConversation.in_inbox.length})
6
+ = link_to email_conversations_in_emailtag_path(WpTag::EMAILTAG_INBOX) do
7
+ Inbox (#{Office::EmailConversation.in_inbox.length})
8
+ = link_to email_conversations_path do
9
+ All (#{Office::EmailConversation.all.length})
10
+ = link_to email_conversations_in_emailtag_path(WpTag::EMAILTAG_TRASH) do
11
+ Trash (#{Office::EmailConversation.in_emailtag(WpTag::EMAILTAG_TRASH).length})
12
+
13
+ Selected: #{params[:slug] || 'all' }
7
14
 
8
15
  .actions
9
16
 
data/config/routes.rb CHANGED
@@ -63,8 +63,9 @@ IshManager::Engine.routes.draw do
63
63
  get 'email_messages/stripped/:id', to: 'email_messages#show_stripped', as: :email_message_stripped
64
64
  resources :email_messages
65
65
 
66
- get 'email_conversations', to: 'email_conversations#index'
67
- get 'email_conversations/:id', to: 'email_conversations#show', as: :email_conversation
66
+ get 'email_conversations', to: 'email_conversations#index'
67
+ get 'email_conversations/in_emailtag/:slug', to: 'email_conversations#index', as: :email_conversations_in_emailtag
68
+ get 'email_conversations/show/:id', to: 'email_conversations#show', as: :email_conversation
68
69
 
69
70
  get 'email_contexts/for_lead/:lead_id', to: 'email_contexts#index', as: :email_contexts_for_lead
70
71
  get 'email_contexts/iframe_src/:id', to: 'email_contexts#iframe_src', as: :email_context_iframe
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.372
4
+ version: 0.1.8.373
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox