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>
|
<body>
|
||||||
<div style="max-width: 600px;">
|
<div style="max-width: 600px;">
|
||||||
<div style="background-color: #041952; padding: 20px">
|
<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>
|
</div>
|
||||||
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
@ -57,6 +57,8 @@ Rails.application.configure do
|
|||||||
host: ENV['BASE_HOST'],
|
host: ENV['BASE_HOST'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config.action_mailer.asset_host = "https://#{ENV['BASE_HOST']}"
|
||||||
|
|
||||||
# Print deprecation notices to the Rails logger.
|
# Print deprecation notices to the Rails logger.
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
||||||
|
@ -71,9 +71,7 @@ Rails.application.configure do
|
|||||||
host: ENV['BASE_HOST'],
|
host: ENV['BASE_HOST'],
|
||||||
}
|
}
|
||||||
|
|
||||||
config.action_mailer.default_url_options = {
|
config.action_mailer.asset_host = "https://#{ENV['BASE_HOST']}"
|
||||||
host: ENV['BASE_HOST'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||||
# the I18n.default_locale when a translation cannot be found).
|
# the I18n.default_locale when a translation cannot be found).
|
||||||
|
Loading…
Reference in New Issue
Block a user