Fix image in emails
This commit is contained in:
parent
e2bcdaec26
commit
9dfdf3675b
BIN
app/assets/images/ansol-logo-white.png
Normal file
BIN
app/assets/images/ansol-logo-white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@ -10,7 +10,7 @@
|
||||
<body>
|
||||
<div style="max-width: 600px;">
|
||||
<div style="background-color: #041952; padding: 20px">
|
||||
<img src="https://hugopeixoto.net/images/ansol-logo-white.png?xxx" style="margin: 0px auto; max-width: 400px; display: block; color: white" alt="ANSOL" />
|
||||
<img src="<%= image_url("ansol-logo-white.png") %>" style="margin: 0px auto; max-width: 400px; display: block; color: white" alt="ANSOL" />
|
||||
</div>
|
||||
|
||||
<%= yield %>
|
||||
|
@ -57,6 +57,8 @@ Rails.application.configure do
|
||||
host: ENV['BASE_HOST'],
|
||||
}
|
||||
|
||||
config.action_mailer.asset_host = "https://#{ENV['BASE_HOST']}"
|
||||
|
||||
# Print deprecation notices to the Rails logger.
|
||||
config.active_support.deprecation = :log
|
||||
|
||||
|
@ -71,9 +71,7 @@ Rails.application.configure do
|
||||
host: ENV['BASE_HOST'],
|
||||
}
|
||||
|
||||
config.action_mailer.default_url_options = {
|
||||
host: ENV['BASE_HOST'],
|
||||
}
|
||||
config.action_mailer.asset_host = "https://#{ENV['BASE_HOST']}"
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation cannot be found).
|
||||
|
Loading…
Reference in New Issue
Block a user