mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
use light email template for staged users
This commit is contained in:
parent
c447900e3b
commit
1d70434de5
2 changed files with 29 additions and 1 deletions
|
@ -289,7 +289,10 @@ class UserNotifications < ActionMailer::Base
|
|||
end
|
||||
|
||||
template = "user_notifications.user_#{notification_type}"
|
||||
template << "_pm" if post.topic.private_message?
|
||||
if post.topic.private_message?
|
||||
template << "_pm"
|
||||
template << "_staged" if user.staged?
|
||||
end
|
||||
|
||||
email_opts = {
|
||||
topic_title: title,
|
||||
|
|
|
@ -1916,6 +1916,22 @@ en:
|
|||
|
||||
Please visit this link to view the message: %{base_url}%{url}
|
||||
|
||||
user_invited_to_private_message_pm_staged:
|
||||
subject_template: "[%{site_name}] %{username} invited you to a message '%{topic_title}'"
|
||||
text_body_template: |
|
||||
|
||||
%{username} invited you to a message
|
||||
|
||||
> **%{topic_title}**
|
||||
>
|
||||
> %{topic_excerpt}
|
||||
|
||||
at
|
||||
|
||||
> %{site_title} -- %{site_description}
|
||||
|
||||
Please visit this link to view the message: %{base_url}%{url}
|
||||
|
||||
user_invited_to_topic:
|
||||
subject_template: "[%{site_name}] %{username} invited you to a topic '%{topic_title}'"
|
||||
text_body_template: |
|
||||
|
@ -2004,6 +2020,15 @@ en:
|
|||
---
|
||||
%{respond_instructions}
|
||||
|
||||
user_posted_pm_staged:
|
||||
subject_template: "%{optional_re}%{topic_title}"
|
||||
text_body_template: |
|
||||
|
||||
%{message}
|
||||
|
||||
---
|
||||
%{respond_instructions}
|
||||
|
||||
digest:
|
||||
why: "A brief summary of %{site_link} since your last visit on %{last_seen_at}"
|
||||
subject_template: "[%{site_name}] Digest"
|
||||
|
|
Loading…
Reference in a new issue