wco_models 3.1.0.101 → 3.1.0.103

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: d23c6a2b915f500b326bb8679196f05a144a3a200446e58c4f565c1be37b8f0f
4
- data.tar.gz: 0307c5db1942f9a6c23b5a826b6bbefdf8b9dc29fe6f9cdd0663d0c048255251
3
+ metadata.gz: b87d2d72bd101f06ccb4a3ceefc9ba4f0a1977285c694299e2e5b13e6a1fa29a
4
+ data.tar.gz: dc9e20d9bba2ad2459854cb1c44f389c8811288844ee3995f8ae54bc8c635d7b
5
5
  SHA512:
6
- metadata.gz: d2b93bc41ad17f3eded7a68900fdd52c23b31b8b57c6d3a6eaab59fe63e8273fdbab105272e26c22291d6ac2c777fca2b5939610335f5ab9d02b59778d103f86
7
- data.tar.gz: f82a524c883c96e1ade3f28416c542eb110647b6264c93672b1f2505668cb7ff1a3c0a826e34ac026e4d0d34173340cdf3fbbdcf95cbedde2df408dfc343d8bf
6
+ metadata.gz: 46d16b94c796f074c75363e77a6c3937130b27a307c566280af16573b1da4fa4be839404648de7bc3ffc47d97b820b3013d0a125337a206ba097eeed73e50c0c
7
+ data.tar.gz: d09b490c2a594421521a2cee6b2b1d48cecb17a7d73ed75d19f15beedb4bcb5f6c153a55a7eaf195d7029a1a37499ae281d1625fcc9bb233828fa73924163312
@@ -126,6 +126,10 @@ textarea.monospace {
126
126
  .header {
127
127
  display: flex;
128
128
 
129
+ > * {
130
+ padding-right: 0.2em;
131
+ }
132
+
129
133
  h5.title {
130
134
  display: flex;
131
135
  }
@@ -72,13 +72,14 @@ class Wco::LeadsController < Wco::ApplicationController
72
72
 
73
73
  def update
74
74
  params[:lead][:tags].delete ''
75
- params[:lead][:leadset] = nil if params[:lead][:leadset].blank?
75
+ params[:lead].delete :leadset if params[:lead][:leadset].blank?
76
76
 
77
- @lead = Wco::Lead.new params[:lead].permit!
77
+ @lead = Wco::Lead.find params[:id]
78
78
  authorize! :update, @lead
79
- if @lead.save
79
+ if @lead.update params[:lead].permit!
80
80
  flash_notice 'ok'
81
81
  else
82
+ puts! @lead.errors.full_messages.join(", "), 'cannot update lead'
82
83
  flash_alert @lead
83
84
  end
84
85
  redirect_to action: :show, id: @lead.id
@@ -78,7 +78,7 @@ class Wco::Lead
78
78
  end
79
79
 
80
80
  def to_s
81
- email
81
+ "#{name} <#{email}>"
82
82
  end
83
83
  def self.list
84
84
  [[nil,nil]] + all.map { |p| [ p.email, p.id ] }
@@ -1,7 +1,9 @@
1
1
 
2
2
  .leads-edit.maxwidth
3
3
  .header
4
- %h5.title Edit lead #{ link_to @lead.name, lead_path(@lead) }
4
+ %h5.title
5
+ Edit lead
6
+ #{ link_to @lead, lead_path(@lead) }
5
7
 
6
8
  = render 'form', :lead => @lead
7
9
 
@@ -42,7 +42,7 @@
42
42
  - @lead.ctxs.each do |ctx|
43
43
  %li
44
44
  = pp_date( ctx.sent_at ) || 'not sent'
45
- = link_to ctx.subject.presence||"No Subj?!", context_path(ctx)
45
+ = link_to ctx.subject.presence||"No Subj?!", wco_email.context_path(ctx)
46
46
 
47
47
  .col-md-6.schs
48
48
  %h5
@@ -13,6 +13,7 @@
13
13
  - if @ctx.reply_to_message
14
14
  %br
15
15
  %br
16
- .mini Your previous message is shown below.
16
+ %br
17
+ .mini{ style: "font-size: 0.7em; color: gray; text-align: right" } Your previous message is shown below.
17
18
  %hr
18
19
  = raw @ctx.reply_to_message.part_html_sanitized
@@ -3,6 +3,8 @@
3
3
  = @renderer.render( inline: @ctx.body )
4
4
 
5
5
  - if @ctx.reply_to_message
6
+ %br
7
+ %br
6
8
  %br
7
9
  %br
8
10
  .mini Your previous message is shown below.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.101
4
+ version: 3.1.0.103
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-04 00:00:00.000000000 Z
11
+ date: 2024-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3