mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Improve emails (#305)
This commit is contained in:
committed by
GitHub
parent
5ad01b0138
commit
98daafc244
@@ -16,6 +16,9 @@ module App
|
||||
# -- all .rb files in that directory are automatically loaded after loading
|
||||
# the framework and any gems in your application.
|
||||
|
||||
# For assets in mailers
|
||||
config.asset_host = ENV["BASE_URL"]
|
||||
|
||||
def base_url
|
||||
ENV["BASE_URL"]
|
||||
end
|
||||
|
||||
@@ -10,6 +10,9 @@ Rails.application.configure do
|
||||
# For Devise
|
||||
config.action_mailer.default_url_options = { host: Rails.application.base_url }
|
||||
|
||||
# For ActionMailer previews
|
||||
config.action_mailer.preview_path = "#{Rails.root}/spec/mailers/previews"
|
||||
|
||||
# In the development environment your application's code is reloaded on
|
||||
# every request. This slows down response time but is perfect for development
|
||||
# since you don't have to restart the web server when you make code changes.
|
||||
|
||||
@@ -40,10 +40,10 @@ de:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -30,22 +30,24 @@ en:
|
||||
body3: "Your password won't change until you access the link above and create a new one."
|
||||
action: 'Change my password'
|
||||
user:
|
||||
opening_greeting: 'Hello!'
|
||||
opening_greeting: 'Hello %{name}!'
|
||||
closing_greeting: 'Have a great day!'
|
||||
learn_more: 'Click here to learn more'
|
||||
unsubscribe: 'Annoyed? You can turn off notifications here'
|
||||
unsubscribe_from_post_html: 'Annoyed? You can turn off notifications for this post %{href}'
|
||||
unsubscribe_from_site_html: 'Annoyed? You can turn off all notifications %{href}'
|
||||
unsubscribe_link: 'here'
|
||||
notify_post_owner:
|
||||
subject: '[%{site_name}] New comment on "%{post}"'
|
||||
body: 'There is a new comment by "%{user}" on your post "%{post}"'
|
||||
body_html: 'There is a new comment by <b>%{user}</b> on your post <b>%{post}</b>'
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
body_html: 'There is a new reply by <b>%{user}</b> to your comment on post <b>%{post}</b>'
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
body_html: 'There is a new update on the post you are following <b>%{post}</b>'
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
body_html: 'There is a status update on the post you are following <b>%{post}</b>'
|
||||
activerecord:
|
||||
models:
|
||||
board:
|
||||
|
||||
@@ -40,10 +40,10 @@ es:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ fr:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ it:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ ja:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ ko:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ nl:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ pt:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ ru:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ vi:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
@@ -40,10 +40,10 @@ zh-CN:
|
||||
notify_comment_owner:
|
||||
subject: '[%{site_name}] New reply on your comment on post "%{post}"'
|
||||
body: 'There is a new reply by "%{user}" on your comment from post "%{post}"'
|
||||
notify_followers_of_post_update:
|
||||
notify_follower_of_post_update:
|
||||
subject: '[%{site_name}] New update for post "%{post}"'
|
||||
body: 'There is a new update on the post you are following "%{post}"'
|
||||
notify_followers_of_post_status_change:
|
||||
notify_follower_of_post_status_change:
|
||||
subject: '[%{site_name}] Status change on post "%{post}"'
|
||||
body: 'There is a status update on the post you are following "%{post}"'
|
||||
activerecord:
|
||||
|
||||
Reference in New Issue
Block a user