ish_manager 0.1.8.371 → 0.1.8.373

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: aacb777eedcaf1fb50ba619128aa5c86d3943bda8ee979cf6850a12af607b1bd
4
- data.tar.gz: 9a08b5cf0241f892ddb084a92975d88760f6d15316cb7e58035512c4756ee962
3
+ metadata.gz: 3520e812ccca2471e7fe71ead1f055303fec0da31efc52ae9f04aff94d80417b
4
+ data.tar.gz: a104b9335d5eb91a3bf2dbdd6c436bd89d98d91941ca74c6f429c55e362918b0
5
5
  SHA512:
6
- metadata.gz: 64f74325e346d3a2b0117c04a594269b444c90706aef6a34c9d739c88b02eda3ddda161adf93dd6ea06e216035bf63df352b31de08f1abd93adffb5343f51ead
7
- data.tar.gz: d86f6f83db1b292dd88b7e256d78f5d08b9d92e5133e2cb5110775e28037bc8e2ddee59300cfea3f885097d9d5f1424c7b11a927784e91ac5d3cb29175a0743b
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.371
4
+ version: 0.1.8.373
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox