ish_manager 0.1.8.475 → 0.1.8.476

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: b0745f9f4eb8cc5c261f4b68f5048a83dd168225157da0d302112a8368d8fc47
4
- data.tar.gz: 6382edc9a7074c39ea8be58196a21514332dc1d7b9d95b25cecd449ba95d6bea
3
+ metadata.gz: 25a1c311a0b599ca5647ea2f3125670e5f6d2a30961fd9bdc910cff357b2f898
4
+ data.tar.gz: 3e36fdeebf66357575f5f7dd03bf4423cb48efae59d01fae1b121e9f9f8b5023
5
5
  SHA512:
6
- metadata.gz: 4ea6e1c87c80facfc4b8eaebe97f068ee529568f3256211175e27cab0ddb14f838d4741ba7dae33ec1608e1ccf9e145e3a6a78f657e50d881e29257d9cd83e44
7
- data.tar.gz: 27aa93073a85328e1bd0e6f5e290a1033dbdc25c22736d8726515c3b5c4aca4336d92297d71d45aa9d02ff1467ae7af6551bf61e3f028fe6de5624f6938cbbb6
6
+ metadata.gz: 0d17b1fc1c52597aba2b6b1619528d037560c96ada41a32bf6a415fcf6ec18423a5a7ce645d1fd193c959fbad970b0fd1ce122eaa7e6508eed4dbfb28430df7d
7
+ data.tar.gz: 07ce5ba415150ee7183978f3816b433dd633cec7ab9b22248172a1833538742963f60229fcaff3303b87cbbbdb21476a6b2e525fad3b0a31a00dd85721a52f73
@@ -32,7 +32,7 @@ class ::IshManager::EmailConversationsController < IshManager::ApplicationContro
32
32
  def show
33
33
  authorize! :email_conversations_show, IshManager::Ability
34
34
  @email_conversation = ::Office::EmailConversation.find( params[:id] )
35
- @email_messages = @email_conversation.email_messages.order_by( date: :asc )
35
+ @email_messages = @email_conversation.email_messages.order_by( date: :asc )
36
36
  @email_conversation.update_attributes({ state: Conv::STATE_READ })
37
37
  end
38
38
 
@@ -132,11 +132,12 @@ class ::IshManager::LeadsController < IshManager::ApplicationController
132
132
  end
133
133
 
134
134
  def show
135
- @lead = Lead.find params[:id]
135
+ @lead = Lead.find params[:id]
136
136
  authorize! :show, @lead
137
- @schs = Sch.where( lead_id: @lead.id )
138
- @ctxs = Ctx.where( lead_id: @lead.id )
139
- @msgs = Msg.where( from: @lead.email )
137
+ @schs = Sch.where( lead_id: @lead.id )
138
+ @ctxs = Ctx.where( lead_id: @lead.id )
139
+ @convs = Conv.find( Office::EmailConversationLead.where( lead_id: @lead.id ).map( &:email_conversation_id ) )
140
+ @msgs = Msg.where( from: @lead.email )
140
141
  @galleries = @lead.galleries.page( params[:galleries_page] ).per( current_profile.per_page )
141
142
  @videos = @lead.videos.page( params[:videos_page] ).per( current_profile.per_page )
142
143
  end
@@ -71,13 +71,11 @@
71
71
 
72
72
  .row
73
73
  .col-md-12.msgs
74
- %h5 Email Messages (#{@msgs.length})
75
- .descr @TODO: these used to be links, but now they are broken. _vp_ 2023-08-10
74
+ %h5 Email Conversations (#{@convs.length})
76
75
  %ul
77
- - @msgs.each do |msg|
76
+ - @convs.each do |conv|
78
77
  %li
79
- = msg.subject
80
- -# = link_to msg.subject, email_conversation_path( msg.conv )
78
+ = link_to conv.subject, email_conversation_path( conv )
81
79
 
82
80
  .row
83
81
  .col-md-6
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.475
4
+ version: 0.1.8.476
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-23 00:00:00.000000000 Z
11
+ date: 2023-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails